diff mbox series

[1/4] scsi: qla2xxx: Remove unnecessary (void*) conversions

Message ID 20230413110641.3760-1-liqiong@nfschina.com
State New
Headers show
Series [1/4] scsi: qla2xxx: Remove unnecessary (void*) conversions | expand

Commit Message

Li Qiong April 13, 2023, 11:06 a.m. UTC
No need to cast (void*) pointer to other type.

Signed-off-by: Li Qiong <liqiong@nfschina.com>
---
 drivers/scsi/qla2xxx/qla_nvme.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

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;