spapr_vscsi: remove duplicate condition check
authorPrasad Joshi <prasadjoshi.linux@gmail.com>
Mon, 24 Mar 2014 15:44:46 +0000 (21:14 +0530)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 Mar 2014 12:19:22 +0000 (13:19 +0100)
Signed-off-by: Prasad Joshi <prasadjoshi.linux@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/spapr_vscsi.c

index 34478f01570aad06753c0a73f6691366c312cae9..d4ada4f3353841e62e378139ea8ed0ebb8bc9b24 100644 (file)
@@ -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);