* [PATCH] scsi: qla2xxx: Remove the unused variable wwn
@ 2023-02-07 5:22 Jiapeng Chong
2023-02-08 23:59 ` Martin K. Petersen
2023-02-14 16:57 ` Martin K. Petersen
0 siblings, 2 replies; 3+ messages in thread
From: Jiapeng Chong @ 2023-02-07 5:22 UTC (permalink / raw)
To: njavali
Cc: GR-QLogic-Storage-Upstream, jejb, martin.petersen, linux-scsi,
linux-kernel, Jiapeng Chong, Abaci Robot
Variable wwn is not effectively used, so delete it.
drivers/scsi/qla2xxx/qla_init.c:1657:6: warning: variable 'wwn' set but not used.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3964
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
drivers/scsi/qla2xxx/qla_init.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index c5e73d5a26b1..1dbc1496ebed 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -1654,7 +1654,6 @@ static void qla_chk_n2n_b4_login(struct scsi_qla_host *vha, fc_port_t *fcport)
int qla24xx_fcport_handle_login(struct scsi_qla_host *vha, fc_port_t *fcport)
{
u16 data[2];
- u64 wwn;
u16 sec;
ql_dbg(ql_dbg_disc, vha, 0x20d8,
@@ -1694,7 +1693,6 @@ int qla24xx_fcport_handle_login(struct scsi_qla_host *vha, fc_port_t *fcport)
switch (fcport->disc_state) {
case DSC_DELETED:
- wwn = wwn_to_u64(fcport->node_name);
switch (vha->hw->current_topology) {
case ISP_CFG_N:
if (fcport_is_smaller(fcport)) {
--
2.20.1.7.g153144c
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi: qla2xxx: Remove the unused variable wwn
2023-02-07 5:22 [PATCH] scsi: qla2xxx: Remove the unused variable wwn Jiapeng Chong
@ 2023-02-08 23:59 ` Martin K. Petersen
2023-02-14 16:57 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2023-02-08 23:59 UTC (permalink / raw)
To: Jiapeng Chong
Cc: njavali, GR-QLogic-Storage-Upstream, jejb, martin.petersen,
linux-scsi, linux-kernel, Abaci Robot
Jiapeng,
> Variable wwn is not effectively used, so delete it.
Applied to 6.3/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi: qla2xxx: Remove the unused variable wwn
2023-02-07 5:22 [PATCH] scsi: qla2xxx: Remove the unused variable wwn Jiapeng Chong
2023-02-08 23:59 ` Martin K. Petersen
@ 2023-02-14 16:57 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2023-02-14 16:57 UTC (permalink / raw)
To: njavali, Jiapeng Chong
Cc: Martin K . Petersen, GR-QLogic-Storage-Upstream, jejb,
linux-scsi, linux-kernel, Abaci Robot
On Tue, 07 Feb 2023 13:22:34 +0800, Jiapeng Chong wrote:
> Variable wwn is not effectively used, so delete it.
>
> drivers/scsi/qla2xxx/qla_init.c:1657:6: warning: variable 'wwn' set but not used.
>
>
Applied to 6.3/scsi-queue, thanks!
[1/1] scsi: qla2xxx: Remove the unused variable wwn
https://git.kernel.org/mkp/scsi/c/d48a62381a73
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-02-14 16:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-07 5:22 [PATCH] scsi: qla2xxx: Remove the unused variable wwn Jiapeng Chong
2023-02-08 23:59 ` Martin K. Petersen
2023-02-14 16:57 ` Martin K. Petersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®