drivers/scsi: remove redundant error variable
Subsystems (2)
PATCH 1/1 drivers/scsi: remove redundant error variable
From: Minghao Chi <[email protected]>
Return value from ahd_linux_queue_abort_cmd() directly instead of taking this in another redundant variable.
Reported-by Zeal Robot <[email protected]>
Signed-off-by Minghao Chi <[email protected]>
Signed-off-by CGEL ZTE <[email protected]>
--- drivers/scsi/aic7xxx/aic79xx_osm.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/scsi/aic7xxx/aic79xx_osm.c +1 -5
@@ -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); }/*
Signature · 1 line
2.25.1
Martin K. Petersen
AppliedQuoted 6 lines · On Tue, 4 Jan 2022 11:24:52 +0000, [email protected] wrote:
From: Minghao Chi <[email protected]>
Return value from
ahd_linux_queue_abort_cmd()directly instead of taking this in another redundant variable.
Applied to 5.17/scsi-queue, thanks!
[1/1] drivers/scsi: remove redundant error variable
https://git.kernel.org/mkp/scsi/c/c3b48443ba7c
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering