All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] spapr_vscsi: remove duplicate condition check
@ 2014-03-24 15:44 ` Prasad Joshi
  0 siblings, 0 replies; 8+ messages in thread
From: Prasad Joshi @ 2014-03-24 15:44 UTC (permalink / raw)
  To: prasadjoshi.linux
  Cc: qemu-trivial, qemu-devel, agraf, qemu-ppc, stefanha, pbonzini

Signed-off-by: Prasad Joshi <prasadjoshi.linux@gmail.com>
---
 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.1.2



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-03-24 17:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-24 15:44 [Qemu-trivial] [PATCH] spapr_vscsi: remove duplicate condition check Prasad Joshi
2014-03-24 15:44 ` [Qemu-devel] " Prasad Joshi
2014-03-24 15:45 ` [Qemu-trivial] " Paolo Bonzini
2014-03-24 15:45   ` [Qemu-devel] " Paolo Bonzini
2014-03-24 17:19   ` [Qemu-trivial] " Prasad Joshi
2014-03-24 17:19     ` [Qemu-devel] " Prasad Joshi
2014-03-24 17:50     ` [Qemu-trivial] " Paolo Bonzini
2014-03-24 17:50       ` [Qemu-devel] " Paolo Bonzini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.