[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210408061851.3089-1-thunder.leizhen@huawei.com>
Date: Thu, 8 Apr 2021 14:18:48 +0800
From: Zhen Lei <thunder.leizhen@...wei.com>
To: Sathya Prakash <sathya.prakash@...adcom.com>,
Sreekanth Reddy <sreekanth.reddy@...adcom.com>,
Suganath Prabu Subramani
<suganath-prabu.subramani@...adcom.com>,
"MPT-FusionLinux . pdl" <MPT-FusionLinux.pdl@...adcom.com>,
linux-scsi <linux-scsi@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>
CC: Zhen Lei <thunder.leizhen@...wei.com>
Subject: [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(-)
--
2.21.1
Powered by blists - more mailing lists