summaryrefslogtreecommitdiff
path: root/drivers/scsi/qlogicpti.h
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-11-04 00:38:44 +0100
committerJames Bottomley <James.Bottomley@suse.de>2009-12-04 12:01:28 -0600
commitcd7560cb69489c6b798b61897449989b4e972327 (patch)
tree1c3fe67658ab10b82d6f56990f151ccd348afdca /drivers/scsi/qlogicpti.h
parentb94f8951bf256674eca3f2a490df17521442afef (diff)
downloadlinux-3.10-cd7560cb69489c6b798b61897449989b4e972327.tar.gz
linux-3.10-cd7560cb69489c6b798b61897449989b4e972327.tar.bz2
linux-3.10-cd7560cb69489c6b798b61897449989b4e972327.zip
[SCSI] qlogicpti: add missing parentheses
`+' has a higher precedence than `?' so the condition always evaluates to true and this is preprocessed to `7*((ql) - 1)' Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qlogicpti.h')
-rw-r--r--drivers/scsi/qlogicpti.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qlogicpti.h b/drivers/scsi/qlogicpti.h
index 9c053bbaa87..e3c74d1ee2d 100644
--- a/drivers/scsi/qlogicpti.h
+++ b/drivers/scsi/qlogicpti.h
@@ -43,7 +43,7 @@
* determined for each queue request anew.
*/
#define QLOGICPTI_REQ_QUEUE_LEN 255 /* must be power of two - 1 */
-#define QLOGICPTI_MAX_SG(ql) (4 + ((ql) > 0) ? 7*((ql) - 1) : 0)
+#define QLOGICPTI_MAX_SG(ql) (4 + (((ql) > 0) ? 7*((ql) - 1) : 0))
/* mailbox command complete status codes */
#define MBOX_COMMAND_COMPLETE 0x4000