]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/scsi/aacraid/aacraid.h
[SCSI] aacraid: Fix warning about macro side-effects
[mirror_ubuntu-bionic-kernel.git] / drivers / scsi / aacraid / aacraid.h
index 113ca9c8934c775e05164f9ab302645bd9c15d53..a990e5b088cccf53f45c5ce1dc63b172914877a8 100644 (file)
@@ -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 */