scsi: aic7xxx: aic79xx_osm: Remove unused variable 'saved_scsiid'
authorLee Jones <lee.jones@linaro.org>
Mon, 2 Nov 2020 14:23:41 +0000 (14:23 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 Nov 2020 03:27:45 +0000 (22:27 -0500)
Fixes the following W=1 kernel build warning(s):

 drivers/scsi/aic7xxx/aic79xx_osm.c: In function ‘ahd_linux_queue_abort_cmd’:
 drivers/scsi/aic7xxx/aic79xx_osm.c:2143:9: warning: variable ‘saved_scsiid’ set but not used [-Wunused-but-set-variable]

Link: https://lore.kernel.org/r/20201102142359.561122-2-lee.jones@linaro.org
Cc: Hannes Reinecke <hare@suse.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aic7xxx/aic79xx_osm.c

index f323989..d413b1c 100644 (file)
@@ -2140,7 +2140,6 @@ ahd_linux_queue_abort_cmd(struct scsi_cmnd *cmd)
        u_int  saved_scbptr;
        u_int  active_scbptr;
        u_int  last_phase;
-       u_int  saved_scsiid;
        u_int  cdb_byte;
        int    retval = SUCCESS;
        int    was_paused;
@@ -2254,7 +2253,7 @@ ahd_linux_queue_abort_cmd(struct scsi_cmnd *cmd)
         * passed in command.  That command is currently active on the
         * bus or is in the disconnected state.
         */
-       saved_scsiid = ahd_inb(ahd, SAVED_SCSIID);
+       ahd_inb(ahd, SAVED_SCSIID);
        if (last_phase != P_BUSFREE
            && SCB_GET_TAG(pending_scb) == active_scbptr) {