Commit 392e4da
scsi: ipr: Remove several unused variables
gcc with W=1 reports
drivers/scsi/ipr.c: In function ‘ipr_init_res_entry’:
drivers/scsi/ipr.c:1104:22: error: variable ‘proto’
set but not used [-Werror=unused-but-set-variable]
1104 | unsigned int proto;
| ^~~~~
drivers/scsi/ipr.c: In function ‘ipr_update_res_entry’:
drivers/scsi/ipr.c:1261:22: error: variable ‘proto’
set but not used [-Werror=unused-but-set-variable]
1261 | unsigned int proto;
| ^~~~~
drivers/scsi/ipr.c: In function ‘ipr_change_queue_depth’:
drivers/scsi/ipr.c:4417:36: error: variable ‘res’
set but not used [-Werror=unused-but-set-variable]
4417 | struct ipr_resource_entry *res;
| ^~~
These variables are not used, so remove them. The lock around res is not
needed so remove that. This makes ioa_cfg and lock_flags unneeded so remove
them as well.
Fixes: 65a15d6 ("scsi: ipr: Remove SATA support")
Signed-off-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20230420125035.3888188-1-trix@redhat.com
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 81221ab commit 392e4da
1 file changed
Lines changed: 0 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1101 | 1101 | | |
1102 | 1102 | | |
1103 | 1103 | | |
1104 | | - | |
1105 | 1104 | | |
1106 | 1105 | | |
1107 | 1106 | | |
| |||
1114 | 1113 | | |
1115 | 1114 | | |
1116 | 1115 | | |
1117 | | - | |
1118 | 1116 | | |
1119 | 1117 | | |
1120 | 1118 | | |
| |||
1160 | 1158 | | |
1161 | 1159 | | |
1162 | 1160 | | |
1163 | | - | |
1164 | 1161 | | |
1165 | 1162 | | |
1166 | 1163 | | |
| |||
1258 | 1255 | | |
1259 | 1256 | | |
1260 | 1257 | | |
1261 | | - | |
1262 | 1258 | | |
1263 | 1259 | | |
1264 | 1260 | | |
| |||
1270 | 1266 | | |
1271 | 1267 | | |
1272 | 1268 | | |
1273 | | - | |
1274 | 1269 | | |
1275 | 1270 | | |
1276 | 1271 | | |
| |||
1299 | 1294 | | |
1300 | 1295 | | |
1301 | 1296 | | |
1302 | | - | |
1303 | 1297 | | |
1304 | 1298 | | |
1305 | 1299 | | |
| |||
4413 | 4407 | | |
4414 | 4408 | | |
4415 | 4409 | | |
4416 | | - | |
4417 | | - | |
4418 | | - | |
4419 | | - | |
4420 | | - | |
4421 | | - | |
4422 | | - | |
4423 | | - | |
4424 | 4410 | | |
4425 | 4411 | | |
4426 | 4412 | | |
| |||
0 commit comments