Skip to contentSkip to conversation

drivers/scsi: remove redundant error variable

PATCH Applied [email protected] 2 participants 2 messages Jan 4, 2022 – Jan 10, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/scsi/aic7xxx/aic79xx_osm.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/scsi/aic7xxx/aic79xx_osm.c +1 -5
index 5d566d2b2997..928099163f0f 100644
@@ -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