Skip to content

Commit 4114714

Browse files
author
Chandrakanth Patil
committed
scsi: mpt3sas: Drop unused variable in mpt3sas_send_mctp_passthru_req()
JIRA: https://issues.redhat.com/browse/RHEL-101342 With W=1, gcc complains correctly: mpt3sas_ctl.c: In function ‘mpt3sas_send_mctp_passthru_req’: mpt3sas_ctl.c:2917:29: error: variable ‘mpi_reply’ set but not used [-Werror=unused-but-set-variable] 2917 | MPI2DefaultReply_t *mpi_reply; | ^~~~~~~~~ Drop the unused assignment and variable. Signed-off-by: André Draszik <andre.draszik@linaro.org> Link: https://lore.kernel.org/r/20250606-mpt3sas-v1-1-906ffe49fb6b@linaro.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> (cherry picked from commit 0ec996e) Signed-off-by: Chandrakanth Patil <chanpati@redhat.com>
1 parent 4e86e65 commit 4114714

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/scsi/mpt3sas/mpt3sas_ctl.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2914,7 +2914,6 @@ int mpt3sas_send_mctp_passthru_req(struct mpt3_passthru_command *command)
29142914
{
29152915
struct MPT3SAS_ADAPTER *ioc;
29162916
MPI2RequestHeader_t *mpi_request = NULL, *request;
2917-
MPI2DefaultReply_t *mpi_reply;
29182917
Mpi26MctpPassthroughRequest_t *mctp_passthru_req;
29192918
u16 smid;
29202919
unsigned long timeout;
@@ -3022,8 +3021,6 @@ int mpt3sas_send_mctp_passthru_req(struct mpt3_passthru_command *command)
30223021
goto issue_host_reset;
30233022
}
30243023

3025-
mpi_reply = ioc->ctl_cmds.reply;
3026-
30273024
/* copy out xdata to user */
30283025
if (data_in_sz)
30293026
memcpy(command->data_in_buf_ptr, data_in, data_in_sz);

0 commit comments

Comments
 (0)