qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2 6/6] scsi-bus: remove overlapping entry


From: Blue Swirl
Subject: [Qemu-devel] [PATCH v2 6/6] scsi-bus: remove overlapping entry
Date: Wed, 1 Aug 2012 18:21:11 +0000

LOAD_UNLOAD and START_STOP have same value, so the table
entry is initialized twice. Spotted by Clang compiler.

Remove LOAD_UNLOAD entry since START_STOP entry already
represents both.

Signed-off-by: Blue Swirl <address@hidden>
---
 hw/scsi-bus.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c
index e4ec19e..a8759bc 100644
--- a/hw/scsi-bus.c
+++ b/hw/scsi-bus.c
@@ -1355,7 +1355,6 @@ static const char *scsi_command_name(uint8_t cmd)
         [ BLANK                    ] = "BLANK",
         [ MOVE_MEDIUM              ] = "MOVE_MEDIUM",
         [ EXCHANGE_MEDIUM          ] = "EXCHANGE MEDIUM",
-        [ LOAD_UNLOAD              ] = "LOAD_UNLOAD",
         [ READ_12                  ] = "READ_12",
         [ WRITE_12                 ] = "WRITE_12",
         [ ERASE_12                 ] = "ERASE_12/GET_PERFORMANCE",
-- 
1.7.2.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]