Received: from eggs.gnu.org ([208.118.235.92]:51781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwqoC-00035J-Ex for qemu-devel@nongnu.org; Thu, 02 Aug 2012 04:31:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Swqo8-0004on-FO for qemu-devel@nongnu.org; Thu, 02 Aug 2012 04:31:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swqo8-0004oj-7W for qemu-devel@nongnu.org; Thu, 02 Aug 2012 04:31:00 -0400 From: Markus Armbruster References: <49e29dcae7ac91b99d0bbee92c0ab828057d797a.1343845033.git.blauwirbel@gmail.com> Date: Thu, 02 Aug 2012 10:30:56 +0200 In-Reply-To: <49e29dcae7ac91b99d0bbee92c0ab828057d797a.1343845033.git.blauwirbel@gmail.com> (Blue Swirl's message of "Wed, 1 Aug 2012 18:21:11 +0000") Message-ID: <87ipd1hf0f.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 6/6] scsi-bus: remove overlapping entry List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: Paolo Bonzini , qemu-devel@nongnu.org [cc: SCSI maintainer] Blue Swirl writes: > 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 > --- > 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", Missed in commit 15e58a21. Reviewed-by: Markus Armbruster