[SCSI] atari_NCR5380, sun3_NCR5380: operator precedence fix
authorRoel Kluin <12o3l@tiscali.nl>
Thu, 15 Nov 2007 20:13:46 +0000 (21:13 +0100)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 12 Jan 2008 00:28:57 +0000 (18:28 -0600)
SR_REQ is defined 0x20, but bitanding has no effect because '!' has a higher
priority than '&'

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/atari_NCR5380.c
drivers/scsi/sun3_NCR5380.c

index d2ca3fa4fcf514796ef3b5d68d65d7b9bfa85ea5..93b61f148653c5507dc076151c26fde0af73f14c 100644 (file)
@@ -1868,7 +1868,7 @@ static int do_abort(struct Scsi_Host *host)
         * the target sees, so we just handshake.
         */
 
-       while (!(tmp = NCR5380_read(STATUS_REG)) & SR_REQ)
+       while (!((tmp = NCR5380_read(STATUS_REG)) & SR_REQ))
                ;
 
        NCR5380_write(TARGET_COMMAND_REG, PHASE_SR_TO_TCR(tmp));
index 264f14ab5a61b0716f5f00e0d2652fced9bcd7a3..bcaba86060abe0787936bff42143776ec81a712e 100644 (file)
@@ -1863,7 +1863,7 @@ static int do_abort (struct Scsi_Host *host)
      * the target sees, so we just handshake.
      */
     
-    while (!(tmp = NCR5380_read(STATUS_REG)) & SR_REQ);
+    while (!((tmp = NCR5380_read(STATUS_REG)) & SR_REQ));
 
     NCR5380_write(TARGET_COMMAND_REG, PHASE_SR_TO_TCR(tmp));