diff options
author | Toomas Soome <tsoome@me.com> | 2018-10-21 11:07:04 +0300 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2018-12-05 01:55:54 +0000 |
commit | 4e9ec610a7fdddfb6264b1155d0cc9c1874aecc2 (patch) | |
tree | 6b096b51487ef17d142ca1851fe883b7ccf1ee24 | |
parent | 52deb364035dd2982f68cdad950a92d577b4784d (diff) | |
download | illumos-joyent-4e9ec610a7fdddfb6264b1155d0cc9c1874aecc2.tar.gz |
10016 bnxe: macro expands to multiple statements
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: C Fraire <cfraire@me.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
-rw-r--r-- | usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/hw_debug.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/hw_debug.h b/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/hw_debug.h index 6efb896d2f..222936f19c 100644 --- a/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/hw_debug.h +++ b/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/hw_debug.h @@ -91,7 +91,7 @@ enum { } -#define IDLE_CHK_CHIP_MASK_CHK(chip_mask) \ +#define IDLE_CHK_CHIP_MASK_CHK(chip_mask) { \ b_test_chip=0; \ var_chip_mask = 0; \ val = REG_RD(pdev, MISC_REG_CHIP_NUM); \ @@ -110,7 +110,8 @@ enum { } \ if (var_chip_mask & chip_mask) { \ b_test_chip = 1;\ - } + } \ +} /* read one reg and check the condition */ #define IDLE_CHK_1(chip_mask, offset, condition, severity, fail_msg) \ |