diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-03-22 11:25:44 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-04-02 04:55:25 +0200 |
commit | 472c1cfb10f19ff7d2ea477f462fd52d0d2e126b (patch) | |
tree | 3541c0eafb7d5c14589588885fb8809f00ec0b3f /drivers/scsi/sr.c | |
parent | scsi: aic94xx: Avoid -Wempty-body warning (diff) | |
download | linux-472c1cfb10f19ff7d2ea477f462fd52d0d2e126b.tar.xz linux-472c1cfb10f19ff7d2ea477f462fd52d0d2e126b.zip |
scsi: message: fusion: Avoid -Wempty-body warnings
There are a couple of warnings in this driver when building with W=1:
drivers/message/fusion/mptbase.c: In function 'PrimeIocFifos':
drivers/message/fusion/mptbase.c:4608:65: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
4608 | "restoring 64 bit addressing\n", ioc->name));
| ^
drivers/message/fusion/mptbase.c:4633:65: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
4633 | "restoring 64 bit addressing\n", ioc->name));
The macros are slightly suboptimal since are not proper statements.
Change both versions to the usual "do { ... } while (0)" style to
make them more robust and avoid the warning.
Link: https://lore.kernel.org/r/20210322102549.278661-2-arnd@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/sr.c')
0 files changed, 0 insertions, 0 deletions