Commit 4114714
Chandrakanth Patil
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
1 file changed
+0
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2914 | 2914 | | |
2915 | 2915 | | |
2916 | 2916 | | |
2917 | | - | |
2918 | 2917 | | |
2919 | 2918 | | |
2920 | 2919 | | |
| |||
3022 | 3021 | | |
3023 | 3022 | | |
3024 | 3023 | | |
3025 | | - | |
3026 | | - | |
3027 | 3024 | | |
3028 | 3025 | | |
3029 | 3026 | | |
| |||
0 commit comments