diff options
author | Lee Jones <[email protected]> | 2020-07-23 13:24:38 +0100 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2020-07-24 22:32:52 -0400 |
commit | e36e0427a46a95961238115efe450b2399a6cc9b (patch) | |
tree | c2714cc47ac45d444d50741230e251d4a7844e85 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 56d244fe89c972ebb8dcf40175d8fdd8cfa25743 (diff) |
scsi: esas2r: Add braces around the one-line if()
In certain configurations esas2r_bugon() is sometimes NULLed by the compiler.
Fixes the following W=1 kernel build warning(s):
In file included from drivers/scsi/esas2r/esas2r_log.c:44:
drivers/scsi/esas2r/esas2r.h: In function ‘esas2r_rq_init_request’:
drivers/scsi/esas2r/esas2r.h:1229:17: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
1229 | esas2r_bugon();
| ^
NB: Lots of these - snipped for brevity
Link: https://lore.kernel.org/r/[email protected]
Cc: Bradley Grove <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions