Re: [PATCH] scsi: mpt3sas: drop unused variable in mpt3sas_send_mctp_passthru_req()

From: Martin K. Petersen
Date: Mon Jun 16 2025 - 14:25:22 EST



André,

> 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.

Applied to 6.17/scsi-staging, thanks!

--
Martin K. Petersen