Skip to content

Commit c3b4844

Browse files
Minghao Chimartinkpetersen
authored andcommitted
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/20220104112452.601899-1-chi.minghao@zte.com.cn Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn> Signed-off-by: CGEL ZTE <cgel.zte@gmail.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent ee05cb7 commit c3b4844

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/scsi/aic7xxx/aic79xx_osm.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -755,11 +755,7 @@ ahd_linux_biosparam(struct scsi_device *sdev, struct block_device *bdev,
755755
static int
756756
ahd_linux_abort(struct scsi_cmnd *cmd)
757757
{
758-
int error;
759-
760-
error = ahd_linux_queue_abort_cmd(cmd);
761-
762-
return error;
758+
return ahd_linux_queue_abort_cmd(cmd);
763759
}
764760

765761
/*

0 commit comments

Comments
 (0)