Commit fbdab3e
scsi: aacraid: remove redundant zero check on ret
The check for ret being zero is redundant as a few statements earlier we
break out of the while loop if ret is non-zero. Thus we can remove the
zero check and also the dead-code non-zero case too.
Detected by CoverityScan, CID#1411632 ("Logically Dead Code")
Signed-off-by: Colin Ian King <[email protected]>
Acked-by: Dave Carroll <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>1 parent 825c6ab commit fbdab3e
1 file changed
+1
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2508 | 2508 | | |
2509 | 2509 | | |
2510 | 2510 | | |
2511 | | - | |
2512 | | - | |
| 2511 | + | |
2513 | 2512 | | |
2514 | 2513 | | |
2515 | 2514 | | |
| |||
2520 | 2519 | | |
2521 | 2520 | | |
2522 | 2521 | | |
2523 | | - | |
2524 | | - | |
2525 | | - | |
2526 | 2522 | | |
2527 | 2523 | | |
2528 | 2524 | | |
| |||
0 commit comments