Commit 3a2d1ef
scsi: ipr: Make ipr_probe_ioa_part2() return void
Convert function ipr_probe_ioa_part2() to return void instead of int since
the current implementation always returns 0 to the caller. The
transformation also eliminates the dead code when calling
ipr_probe_ioa_part2() function. Issue identified using returnvar
Coccinelle semantic patch.
Link: https://lore.kernel.org/r/Y7rvQyMOGcPKPTv8@ubun2204.myguest.virtualbox.org
Signed-off-by: Deepak R Varma <drv@mailo.com>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 26a02d9 commit 3a2d1ef
1 file changed
Lines changed: 3 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9500 | 9500 | | |
9501 | 9501 | | |
9502 | 9502 | | |
9503 | | - | |
| 9503 | + | |
9504 | 9504 | | |
9505 | | - | |
| 9505 | + | |
9506 | 9506 | | |
9507 | | - | |
9508 | 9507 | | |
9509 | 9508 | | |
9510 | 9509 | | |
| |||
9520 | 9519 | | |
9521 | 9520 | | |
9522 | 9521 | | |
9523 | | - | |
9524 | 9522 | | |
9525 | 9523 | | |
9526 | 9524 | | |
| |||
10563 | 10561 | | |
10564 | 10562 | | |
10565 | 10563 | | |
10566 | | - | |
10567 | | - | |
10568 | | - | |
10569 | | - | |
10570 | | - | |
10571 | | - | |
| 10564 | + | |
10572 | 10565 | | |
10573 | 10566 | | |
10574 | 10567 | | |
| |||
0 commit comments