public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] IPS driver typo
@ 2003-02-26 18:50 John Levon
  0 siblings, 0 replies; only message in thread
From: John Levon @ 2003-02-26 18:50 UTC (permalink / raw)
  To: linux-scsi; +Cc: ipslinux


Not tested, against 2.5.63

regards
john


--- linux-linus/drivers/scsi/ips.c	2003-02-25 13:53:55.000000000 +0000
+++ linux/drivers/scsi/ips.c	2003-02-26 18:54:14.000000000 +0000
@@ -2737,7 +2737,7 @@
 
       scb->dcdb.cmd_attribute = ips_command_direction[scb->scsi_cmd->cmnd[0]];
 
-      if (!scb->dcdb.cmd_attribute & 0x3)
+      if (!(scb->dcdb.cmd_attribute & 0x3))
          scb->dcdb.transfer_length = 0;
 
       if (scb->data_len >= IPS_MAX_XFER) {
@@ -3315,7 +3315,7 @@
          scb->dcdb.transfer_length = scb->data_len;
          scb->dcdb.cmd_attribute |= ips_command_direction[scb->scsi_cmd->cmnd[0]];
 
-         if (!scb->dcdb.cmd_attribute & 0x3)
+         if (!(scb->dcdb.cmd_attribute & 0x3))
             scb->dcdb.transfer_length = 0;
 
          if (scb->data_len >= IPS_MAX_XFER) {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-02-26 18:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-26 18:50 [PATCH] IPS driver typo John Levon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox