diff options
| author | Minghao Chi <[email protected]> | 2022-01-04 11:24:52 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2022-01-05 05:55:38 +0000 |
| commit | c3b48443ba7c4467d44f7faa16fea204ea6c239c (patch) | |
| tree | e975a76f866bae3c8a778b7167ccbae443c0f24d | |
| parent | scsi: pm80xx: Port reset timeout error handling correction (diff) | |
| download | kernel-c3b48443ba7c4467d44f7faa16fea204ea6c239c.tar.gz kernel-c3b48443ba7c4467d44f7faa16fea204ea6c239c.zip | |
scsi: aic79xx: Remove redundant error variable
Return the value from ahd_linux_queue_abort_cmd() directly instead of using
a redundant variable.
Link: https://lore.kernel.org/r/[email protected]
Reported-by: Zeal Robot <[email protected]>
Signed-off-by: Minghao Chi <[email protected]>
Signed-off-by: CGEL ZTE <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
| -rw-r--r-- | drivers/scsi/aic7xxx/aic79xx_osm.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/scsi/aic7xxx/aic79xx_osm.c b/drivers/scsi/aic7xxx/aic79xx_osm.c index 5d566d2b2997..928099163f0f 100644 --- a/drivers/scsi/aic7xxx/aic79xx_osm.c +++ b/drivers/scsi/aic7xxx/aic79xx_osm.c @@ -755,11 +755,7 @@ ahd_linux_biosparam(struct scsi_device *sdev, struct block_device *bdev, static int ahd_linux_abort(struct scsi_cmnd *cmd) { - int error; - - error = ahd_linux_queue_abort_cmd(cmd); - - return error; + return ahd_linux_queue_abort_cmd(cmd); } /* |
