diff options
author | Lee Jones <[email protected]> | 2020-07-21 17:41:47 +0100 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2020-07-24 22:36:46 -0400 |
commit | 6eaa862747eadbec42600031c93e6e52a2d1edda (patch) | |
tree | d7dbaba459e5a2dfb3d793022d7bd077d9a7e087 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | e3903d31826fc1732bc5745fb9a8686bfa49444f (diff) |
scsi: mvsas: Move 'core_nr' inside #ifdef and remove unused variable 'res_flag'
Only declare 'core_nr' if its conditions for use are met.
Fixes the following W=1 kernel build warning(s):
drivers/scsi/mvsas/mv_init.c: In function ‘mvs_interrupt’:
drivers/scsi/mvsas/mv_init.c:180:6: warning: variable ‘core_nr’ set but not used [-Wunused-but-set-variable]
drivers/scsi/mvsas/mv_init.c: In function ‘mvs_ioremap’:
drivers/scsi/mvsas/mv_init.c:302:36: warning: variable ‘res_flag’ set but not used [-Wunused-but-set-variable]
[mkp: applied follow-up fixup patch]
Link: https://lore.kernel.org/r/[email protected]
Cc: Jason Yan <[email protected]>
Cc: Marvell <[email protected]>
Cc: Jeff Garzik <[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