[PATCH 1/4] scsi: qla2xxx: Remove unnecessary (void*) conversions
From: Li Qiong
Date: Thu Apr 13 2023 - 07:10:06 EST
No need to cast (void*) pointer to other type.
Signed-off-by: Li Qiong <liqiong@xxxxxxxxxxxx>
---
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