Message ID | 20220104112452.601899-1-chi.minghao@zte.com.cn |
---|---|
State | New |
Headers | show |
Series | drivers/scsi: remove redundant error variable | expand |
On Tue, 4 Jan 2022 11:24:52 +0000, cgel.zte@gmail.com wrote: > From: Minghao Chi <chi.minghao@zte.com.cn> > > 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
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); } /*