Received: from eggs.gnu.org ([2001:4830:134:3::10]:54126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSmps-0001zG-Tz for qemu-devel@nongnu.org; Wed, 26 Mar 2014 08:21:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSmpk-0000Z9-7I for qemu-devel@nongnu.org; Wed, 26 Mar 2014 08:21:36 -0400 Received: from mail-qc0-x236.google.com ([2607:f8b0:400d:c01::236]:55876) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSmpk-0000Yz-2f for qemu-devel@nongnu.org; Wed, 26 Mar 2014 08:21:28 -0400 Received: by mail-qc0-f182.google.com with SMTP id e16so2408854qcx.13 for ; Wed, 26 Mar 2014 05:21:27 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Wed, 26 Mar 2014 13:21:11 +0100 Message-Id: <1395836471-5816-3-git-send-email-pbonzini@redhat.com> In-Reply-To: <1395836471-5816-1-git-send-email-pbonzini@redhat.com> References: <1395836471-5816-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 2/2] spapr_vscsi: remove duplicate condition check List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: prasadjoshi.linux@gmail.com From: Prasad Joshi Signed-off-by: Prasad Joshi Signed-off-by: Paolo Bonzini --- hw/scsi/spapr_vscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/scsi/spapr_vscsi.c b/hw/scsi/spapr_vscsi.c index 34478f0..d4ada4f 100644 --- a/hw/scsi/spapr_vscsi.c +++ b/hw/scsi/spapr_vscsi.c @@ -690,7 +690,7 @@ static void vscsi_inquiry_no_target(VSCSIState *s, vscsi_req *req) int rc, len, alen; /* We dont do EVPD. Also check that page_code is 0 */ - if ((cdb[1] & 0x01) || (cdb[1] & 0x01) || cdb[2] != 0) { + if ((cdb[1] & 0x01) || cdb[2] != 0) { /* Send INVALID FIELD IN CDB */ vscsi_makeup_sense(s, req, ILLEGAL_REQUEST, 0x24, 0); vscsi_send_rsp(s, req, CHECK_CONDITION, 0, 0); -- 1.8.5.3