Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Minghao Chi and committed by
Martin K. Petersen
c3b48443 ee05cb71

+1 -5
+1 -5
drivers/scsi/aic7xxx/aic79xx_osm.c
··· 755 755 static int 756 756 ahd_linux_abort(struct scsi_cmnd *cmd) 757 757 { 758 - int error; 759 - 760 - error = ahd_linux_queue_abort_cmd(cmd); 761 - 762 - return error; 758 + return ahd_linux_queue_abort_cmd(cmd); 763 759 } 764 760 765 761 /*