[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230413110641.3760-1-liqiong@nfschina.com>
Date: Thu, 13 Apr 2023 19:06:41 +0800
From: Li Qiong <liqiong@...china.com>
To: Nilesh Javali <njavali@...vell.com>,
GR-QLogic-Storage-Upstream@...vell.com,
"James E . J . Bottomley" <jejb@...ux.ibm.com>,
"Martin K . Petersen" <martin.petersen@...cle.com>
Cc: linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
Li Qiong <liqiong@...china.com>
Subject: [PATCH 1/4] scsi: qla2xxx: Remove unnecessary (void*) conversions
No need to cast (void*) pointer to other type.
Signed-off-by: Li Qiong <liqiong@...china.com>
---
drivers/scsi/qla2xxx/qla_nvme.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/scsi/qla2xxx/qla_nvme.c b/drivers/scsi/qla2xxx/qla_nvme.c
index 648e8f798606..93996bd70380 100644
--- a/drivers/scsi/qla2xxx/qla_nvme.c
+++ b/drivers/scsi/qla2xxx/qla_nvme.c
@@ -100,7 +100,7 @@ static int qla_nvme_alloc_queue(struct nvme_fc_local_port *lport,
if (qidx)
qidx--;
- vha = (struct scsi_qla_host *)lport->private;
+ vha = lport->private;
ha = vha->hw;
ql_log(ql_log_info, vha, 0x2104,
@@ -141,7 +141,7 @@ static int qla_nvme_alloc_queue(struct nvme_fc_local_port *lport,
static void qla_nvme_release_fcp_cmd_kref(struct kref *kref)
{
struct srb *sp = container_of(kref, struct srb, cmd_kref);
- struct nvme_private *priv = (struct nvme_private *)sp->priv;
+ struct nvme_private *priv = sp->priv;
struct nvmefc_fcp_req *fd;
struct srb_iocb *nvme;
unsigned long flags;
@@ -173,7 +173,7 @@ static void qla_nvme_release_fcp_cmd_kref(struct kref *kref)
static void qla_nvme_release_ls_cmd_kref(struct kref *kref)
{
struct srb *sp = container_of(kref, struct srb, cmd_kref);
- struct nvme_private *priv = (struct nvme_private *)sp->priv;
+ struct nvme_private *priv = sp->priv;
struct nvmefc_ls_req *fd;
unsigned long flags;
--
2.11.0
Powered by blists - more mailing lists