From 31a2c05140947fe2d2046a8e33a50f5dc22e568a Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Sat, 16 Apr 2011 15:45:13 +0000 Subject: [PATCH] Minor cleanup git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3389 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 113cc25a0..3276610e6 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -1412,8 +1412,6 @@ static void vdisk_exec_inquiry(struct scst_cmd *cmd) } buf[0] = cmd->dev->type; /* type dev */ - if (virt_dev->removable) - buf[1] = 0x80; /* removable */ /* Vital Product */ if (cmd->cdb[1] & EVPD) { if (0 == cmd->cdb[2]) { @@ -1577,6 +1575,8 @@ static void vdisk_exec_inquiry(struct scst_cmd *cmd) goto out_put; } + if (virt_dev->removable) + buf[1] = 0x80; /* removable */ buf[2] = 5; /* Device complies to SPC-3 */ buf[3] = 0x12; /* HiSup + data in format specified in SPC */ if (cmd->tgtt->fake_aca)