Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2266091rwl; Thu, 13 Apr 2023 04:13:14 -0700 (PDT) X-Google-Smtp-Source: AKy350at/loKu6LJQuiySt2+8w7pktZyZDmCxkvVetdnsOcWciLfzeZnvbVw9OFoRXWS0YVdvOQg X-Received: by 2002:aa7:df85:0:b0:4fa:ba31:6c66 with SMTP id b5-20020aa7df85000000b004faba316c66mr1924842edy.42.1681384394201; Thu, 13 Apr 2023 04:13:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681384394; cv=none; d=google.com; s=arc-20160816; b=P+rJiOs29Bghz65I73swYk4/uFzagWO7lCqk33ACHyRHtWeuX/XtSg5oolwBY1l8AB OyxKlrx97GmJhgPwTQG308spoafTQhxq1zVwoUx6/v/ycCtIf81G2QRtG5eeR0METFF0 N2bER3KZ++O7KkRXQrQaP7tTUkXEhZPSEWdinv/RP9fFcA06LHqWLYABzrVMtlXasGIP U7JgGxztz6nCRbibQW/0jev9GamW2+CMAg5AM4gnT+kkUVg4u84dJBJxd0IB14M62Qph 5Gnjjxxt2lv5aVfSkol8BJpMwD3TRmve1wd+Vwfkt7lLIYInl4z4V13cMNckSURGD2ip jRCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=wKtr1cStaz1JLL+ydGYrzqE5NHl+ew70xPvMzzVA2u4=; b=zS3TxSEwGNNsMumahlfuKpJrKym4YDOigw7BBsIRdOEGafqkPs8fJFmM5fWAr+Km6p MbM69Q82dJjvCqLAjJ/UgW1HWqR5OwoyN4XAMBMm99EvInhR/6WX2i/hIHduvJYN21YF OesBZuKW5oGoIAqF+/FYQrHcUlA0br1HpOBhVyr1ywmTkuQPAUEjk8yR4lXBcwiIE/wb Q1sS6cmD69zrLQ/pYG6NqpIuTbp8Rj4iXir3AHuL5+ODWTfdQa4Ovyg5ads2vqhxVFMS g84RgqPk2e4Vjp7V+ZE+2uFhBUiinCA6xbzZIMRyh8o9usPbFKUk1dBe1HkERLmvbVte 32hA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s15-20020aa7cb0f000000b0050494d883c9si1678811edt.538.2023.04.13.04.12.49; Thu, 13 Apr 2023 04:13:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229949AbjDMLKD (ORCPT + 99 others); Thu, 13 Apr 2023 07:10:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229904AbjDMLKC (ORCPT ); Thu, 13 Apr 2023 07:10:02 -0400 X-Greylist: delayed 120 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 13 Apr 2023 04:09:53 PDT Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 133477D9C; Thu, 13 Apr 2023 04:09:52 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 50B0318010E345; Thu, 13 Apr 2023 19:07:38 +0800 (CST) X-MD-Sfrom: liqiong@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Li Qiong To: Nilesh Javali , GR-QLogic-Storage-Upstream@marvell.com, "James E . J . Bottomley" , "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Li Qiong Subject: [PATCH 1/4] scsi: qla2xxx: Remove unnecessary (void*) conversions Date: Thu, 13 Apr 2023 19:06:41 +0800 Message-Id: <20230413110641.3760-1-liqiong@nfschina.com> X-Mailer: git-send-email 2.11.0 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org No need to cast (void*) pointer to other type. Signed-off-by: Li Qiong --- 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