summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aacraid
diff options
context:
space:
mode:
authorMark Salyzyn <Mark_Salyzyn@adaptec.com>2008-04-30 21:28:32 +0200
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-05-02 20:05:28 +0200
commite2efe7aa24dc7b430d2ea109fa117bd3c60ae8e6 (patch)
treecae86b1bf9661fa81fc6f83ce8d41ca272361d70 /drivers/scsi/aacraid
parent[SCSI] add support for variable length extended commands (diff)
downloadlinux-e2efe7aa24dc7b430d2ea109fa117bd3c60ae8e6.tar.xz
linux-e2efe7aa24dc7b430d2ea109fa117bd3c60ae8e6.zip
[SCSI] aacraid: Fix warning about macro side-effects
On some compile environments, warnings are produced regarding the usage of aac_logical_to_phys macro. Signed-off-by: Mark Salyzyn <aacraid@adaptec.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/aacraid')
-rw-r--r--drivers/scsi/aacraid/aacraid.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h
index 113ca9c8934c..a990e5b088cc 100644
--- a/drivers/scsi/aacraid/aacraid.h
+++ b/drivers/scsi/aacraid/aacraid.h
@@ -34,8 +34,8 @@
#define CONTAINER_TO_ID(cont) (cont)
#define CONTAINER_TO_LUN(cont) (0)
-#define aac_phys_to_logical(x) (x+1)
-#define aac_logical_to_phys(x) (x?x-1:0)
+#define aac_phys_to_logical(x) ((x)+1)
+#define aac_logical_to_phys(x) ((x)?(x)-1:0)
/* #define AAC_DETAILED_STATUS_INFO */