From 00be964c0876bfda267f8e175d84b34065249f89 Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Fri, 24 Mar 2017 16:26:11 +0000 Subject: [PATCH] Add brackets to fix incorrect macro expansion. Reported by: Andreas Hollmann / PVS-Studio MFC after: 2 weeks --- sys/dev/isp/ispmbox.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/isp/ispmbox.h b/sys/dev/isp/ispmbox.h index e929e86e10e..f672b429b59 100644 --- a/sys/dev/isp/ispmbox.h +++ b/sys/dev/isp/ispmbox.h @@ -1207,7 +1207,7 @@ typedef struct { #define ICB2400_VPINFO_OFF 0x80 /* offset from start of ICB */ #define ICB2400_VPINFO_PORT_OFF(chan) \ (ICB2400_VPINFO_OFF + \ - sizeof (isp_icb_2400_vpinfo_t) + (chan * ICB2400_VPOPT_WRITE_SIZE)) + sizeof (isp_icb_2400_vpinfo_t) + ((chan) * ICB2400_VPOPT_WRITE_SIZE)) #define ICB2400_VPGOPT_FCA 0x01 /* Assume Clean Address bit in FLOGI ACC set (works only in static configurations) */ #define ICB2400_VPGOPT_MID_DISABLE 0x02 /* when set, connection mode2 will work with NPIV-capable switched */