Messages in this thread Patch in this message | | | From | Li Qiong <> | Subject | [PATCH 1/4] scsi: qla2xxx: Remove unnecessary (void*) conversions | Date | Thu, 13 Apr 2023 19:06:41 +0800 |
| |
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 --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
| |