Commit cd7560cb authored by Roel Kluin's avatar Roel Kluin Committed by James Bottomley

[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: default avatarRoel Kluin <roel.kluin@gmail.com>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent b94f8951
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
* determined for each queue request anew. * determined for each queue request anew.
*/ */
#define QLOGICPTI_REQ_QUEUE_LEN 255 /* must be power of two - 1 */ #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 */ /* mailbox command complete status codes */
#define MBOX_COMMAND_COMPLETE 0x4000 #define MBOX_COMMAND_COMPLETE 0x4000
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment