scsi: aacraid: remove unused variable managed_request_id
authorColin Ian King <colin.king@canonical.com>
Wed, 15 Nov 2017 16:53:41 +0000 (16:53 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 5 Dec 2017 01:32:53 +0000 (20:32 -0500)
Variable managed_request_id is being assigned but it is never read,
hence it is redundant and can be removed. Cleans up clang warning:

drivers/scsi/aacraid/linit.c:706:5: warning: Value stored to
'managed_request_id' is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aacraid/linit.c

index c9252b138c1fe0e21d217b0fb305cc45afc1545a..3677beff9c17294159fa6cf77da3422eac212083 100644 (file)
@@ -690,7 +690,6 @@ static int aac_eh_abort(struct scsi_cmnd* cmd)
                struct aac_hba_tm_req *tmf;
                int status;
                u64 address;
-               __le32 managed_request_id;
 
                pr_err("%s: Host adapter abort request (%d,%d,%d,%d)\n",
                 AAC_DRIVERNAME,
@@ -703,8 +702,6 @@ static int aac_eh_abort(struct scsi_cmnd* cmd)
                                (fib->flags & FIB_CONTEXT_FLAG_NATIVE_HBA) &&
                                (fib->callback_data == cmd)) {
                                found = 1;
-                               managed_request_id = ((struct aac_hba_cmd_req *)
-                                       fib->hw_fib_va)->request_id;
                                break;
                        }
                }