Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5127529rwp; Sun, 16 Jul 2023 20:33:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlFQa91YdNOA7NBZrdgab5C4pVOuxijr4iEEGgEKyGol3rRFlRZPs22wPo1rAxiV5A7yDgNH X-Received: by 2002:a05:6808:120c:b0:397:ec35:f5a6 with SMTP id a12-20020a056808120c00b00397ec35f5a6mr12303093oil.57.1689564831446; Sun, 16 Jul 2023 20:33:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689564831; cv=none; d=google.com; s=arc-20160816; b=Xcj4yFupCKrp5Rw+Oat+cXDe548m/tdMz2bIH96PveiAqX9dReukL/Y6AOREbtf2bs RKNCSwjWogdk7vq0GhOm1hZMMjI1VWWrFAynmM3KoQ9FsbMhJpoTuFbPqJN3xDx06EwI NWczzGxLPmg4qsjir5t8E/IwAuIXW5+/S1FNiOeh4uKbdVgS52sRUbfskecUJKVvzrdM DAb6vG7JE9VC6m4Da1rbmDNCZUvYnkgVSfSj4TtCAIhfSRFISB/Urw1C9gwN3liV9GAX ZJxIVDo8pBpkiWCkzrzhF/IAwHFARSx0VXgNlRltDzNfWPrWnAXrahERLt0npUfNwyxY J3NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=54shYDIX7/iiLHv+HTzejzkcHZnfWWzH8T8SaMs6G7Y=; fh=tFC9KzlPtTJ0mgJwzHkJM5xNXS2L2XHQWf7rH6DDRdI=; b=gNK95S/4Z2L/WD6dui6nBF15tGcTrL/L98aMw93HCkNxeMhTdk283llyPhxlxxmzGr mnFtLqZZ2aZ4MIioyGJiqQtxc4wAsJEKJF4B5YCz7awwqQ4FW+KvI8clO9FFVIrirDvZ w5G3YoP+jDskHsxrqKMA+pkWLAu598Q5+9Ftp6i2SYoS5T+8Ej52mQZGPKyeCKwrasJp UdD7YsW387C4AwYgbOjpqlZ/BnFyQlblzH8lkPscjcdwRXSRDXHl8q+PnH8lqZHVVCQ0 A5ZoHK1Hlh5rHt36/qc1MdgRnoRHTuNOc3ezc48A6gXSydSqy5Xn37KfVjDhySGb7n/q MvCQ== 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 i186-20020a6387c3000000b0055be61476b4si10832925pge.288.2023.07.16.20.33.39; Sun, 16 Jul 2023 20:33:51 -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 S231379AbjGQDNb (ORCPT + 99 others); Sun, 16 Jul 2023 23:13:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231441AbjGQDM5 (ORCPT ); Sun, 16 Jul 2023 23:12:57 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 37CCB172C; Sun, 16 Jul 2023 20:12:39 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 2987A601858F3; Mon, 17 Jul 2023 11:12:30 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Wu Yunchuan To: rmody@marvell.com, skalluru@marvell.com, GR-Linux-NIC-Dev@marvell.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Wu Yunchuan Subject: [PATCH net-next v3 9/9] net: bna: Remove unnecessary (void*) conversions Date: Mon, 17 Jul 2023 11:12:29 +0800 Message-Id: <20230717031229.55169-1-yunchuan@nfschina.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RDNS_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 cast (void*) to (struct bnad_tx_info *) or (struct bnad_rx_info *). Signed-off-by: Wu Yunchuan --- drivers/net/ethernet/brocade/bna/bnad.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c index d6d90f9722a7..31191b520b58 100644 --- a/drivers/net/ethernet/brocade/bna/bnad.c +++ b/drivers/net/ethernet/brocade/bna/bnad.c @@ -1037,8 +1037,7 @@ bnad_cb_ccb_destroy(struct bnad *bnad, struct bna_ccb *ccb) static void bnad_cb_tx_stall(struct bnad *bnad, struct bna_tx *tx) { - struct bnad_tx_info *tx_info = - (struct bnad_tx_info *)tx->priv; + struct bnad_tx_info *tx_info = tx->priv; struct bna_tcb *tcb; u32 txq_id; int i; @@ -1056,7 +1055,7 @@ bnad_cb_tx_stall(struct bnad *bnad, struct bna_tx *tx) static void bnad_cb_tx_resume(struct bnad *bnad, struct bna_tx *tx) { - struct bnad_tx_info *tx_info = (struct bnad_tx_info *)tx->priv; + struct bnad_tx_info *tx_info = tx->priv; struct bna_tcb *tcb; u32 txq_id; int i; @@ -1133,7 +1132,7 @@ bnad_tx_cleanup(struct delayed_work *work) static void bnad_cb_tx_cleanup(struct bnad *bnad, struct bna_tx *tx) { - struct bnad_tx_info *tx_info = (struct bnad_tx_info *)tx->priv; + struct bnad_tx_info *tx_info = tx->priv; struct bna_tcb *tcb; int i; @@ -1149,7 +1148,7 @@ bnad_cb_tx_cleanup(struct bnad *bnad, struct bna_tx *tx) static void bnad_cb_rx_stall(struct bnad *bnad, struct bna_rx *rx) { - struct bnad_rx_info *rx_info = (struct bnad_rx_info *)rx->priv; + struct bnad_rx_info *rx_info = rx->priv; struct bna_ccb *ccb; struct bnad_rx_ctrl *rx_ctrl; int i; @@ -1208,7 +1207,7 @@ bnad_rx_cleanup(void *work) static void bnad_cb_rx_cleanup(struct bnad *bnad, struct bna_rx *rx) { - struct bnad_rx_info *rx_info = (struct bnad_rx_info *)rx->priv; + struct bnad_rx_info *rx_info = rx->priv; struct bna_ccb *ccb; struct bnad_rx_ctrl *rx_ctrl; int i; @@ -1231,7 +1230,7 @@ bnad_cb_rx_cleanup(struct bnad *bnad, struct bna_rx *rx) static void bnad_cb_rx_post(struct bnad *bnad, struct bna_rx *rx) { - struct bnad_rx_info *rx_info = (struct bnad_rx_info *)rx->priv; + struct bnad_rx_info *rx_info = rx->priv; struct bna_ccb *ccb; struct bna_rcb *rcb; struct bnad_rx_ctrl *rx_ctrl; -- 2.30.2