diff options
| author | Arnd Bergmann <[email protected]> | 2018-08-14 00:27:10 +0200 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2018-08-30 07:21:04 -0400 |
| commit | 0eeec01488da9b1403c8c29e73eacac8af9e4bf2 (patch) | |
| tree | 8eebdcb0733dea4328cd1e789af8d9ebe590189d /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 5b394b2ddf0347bef56e50c69a58773c94343ff3 (diff) | |
scsi: raid_attrs: fix unused variable warning
I ran into a new warning on randconfig kernels:
drivers/scsi/raid_class.c: In function 'raid_match':
drivers/scsi/raid_class.c:64:24: error: unused variable 'i' [-Werror=unused-variable]
This looks like a very old problem that for some reason was very hard to
run into, but it is very easy to fix, by replacing the incorrect #ifdef
with a simpler IS_ENABLED() check.
Fixes: fac829fdcaf4 ("[SCSI] raid_attrs: fix dependency problems")
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions