Skip to content

scsi: mptfusion: Clear the warnings indicating that the variable is not used

Zhen Lei linux-scsi lkml 1 version Applied

Status from this message: I applied patches 1+2. I hesitate making functional changes to such an

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3scsi: mptfusion: Remove unused local variable 'time_count'drivers/message/fusion/mptctl.c+0 -20 replies
2/3scsi: mptfusion: Remove unused local variable 'port'drivers/message/fusion/mptctl.c+0 -60 replies
3/3scsi: mptfusion: Fix error return code of mptctl_hp_hostinfo()drivers/message/fusion/mptctl.c+12 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] scsi: mptfusion: Clear the warnings indicating that the variable is not used

Fix below warnings:
drivers/message/fusion/mptctl.c: In function ‘mptctl_do_taskmgmt’:
drivers/message/fusion/mptctl.c:324:17: warning: variable ‘time_count’ set but not used [-Wunused-but-set-variable]

  324 |  unsigned long  time_count;
      |                 ^~~~~~~~~~
drivers/message/fusion/mptctl.c: In function ‘mptctl_gettargetinfo’:
drivers/message/fusion/mptctl.c:1372:7: warning: variable ‘port’ set but not used [-Wunused-but-set-variable]
 1372 |  u8   port;
      |       ^~~~
drivers/message/fusion/mptctl.c: In function ‘mptctl_hp_hostinfo’:
drivers/message/fusion/mptctl.c:2337:8: warning: variable ‘retval’ set but not used [-Wunused-but-set-variable]
 2337 |  int   retval;
      |        ^~~~~~

Zhen Lei (3):
scsi: mptfusion: Remove unused local variable 'time_count'
scsi: mptfusion: Remove unused local variable 'port'
scsi: mptfusion: Fix error return code of mptctl_hp_hostinfo()

 drivers/message/fusion/mptctl.c | 28 ++++++++++++----------------
 1 file changed, 12 insertions(+), 16 deletions(-)
Signature · 1 line
2.21.1