Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scsi: fusion: fix if-statement empty body warning
When driver debugging is not enabled, change the debug print macros to use the no_printk() macro. This fixes a gcc warning when -Wextra is set: ../drivers/message/fusion/mptlan.c:266:39: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] I have verified that there is very little object code change (with gcc 7.5.0). There are a few changes like: cmp %a,%b jl $1 to cmp %b,%a jg $1 Link: https://lore.kernel.org/r/[email protected] Cc: Bart Van Assche <[email protected]> Cc: "James E.J. Bottomley" <[email protected]> Cc: "Martin K. Petersen" <[email protected]> Cc: [email protected] Cc: [email protected] Cc: Suganath Prabu Subramani <[email protected]> Cc: Chaitra P B <[email protected]> Cc: Sathya Prakash <[email protected]> Reviewed-by: Bart van Assche <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
- Loading branch information