scsi: aha152x: Remove unused variable 'ret'
authorLee Jones <lee.jones@linaro.org>
Tue, 7 Jul 2020 14:00:51 +0000 (15:00 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 8 Jul 2020 05:12:53 +0000 (01:12 -0400)
Looks to be unused since 2014.

Fixes the following W=1 kernel build warning(s):

 drivers/scsi/aha152x.c: In function ‘datai_run’:
 drivers/scsi/aha152x.c:2033:9: warning: variable ‘data’ set but not used [-Wunused-but-set-variable]
 2033 | int data;
 | ^~~~

Link: https://lore.kernel.org/r/20200707140055.2956235-7-lee.jones@linaro.org
Cc: "Juergen E. Fischer" <fischer@norbit.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aha152x.c

index 90f97df..d8e19af 100644 (file)
@@ -2030,8 +2030,7 @@ static void datai_run(struct Scsi_Host *shpnt)
                                    fifodata, GETPORT(FIFOSTAT));
                        SETPORT(DMACNTRL0, ENDMA|_8BIT);
                        while(fifodata>0) {
-                               int data;
-                               data=GETPORT(DATAPORT);
+                               GETPORT(DATAPORT);
                                fifodata--;
                                DATA_LEN++;
                        }