Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1534471rwd; Tue, 16 May 2023 19:47:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5wd1jYUZZXkcXLpYGO0TJv6b3XWvGTzgogUyEamjrhqiIay32U6WOtT5ZQX+8E5Gyg1Zw4 X-Received: by 2002:a05:6a20:8f10:b0:102:345f:593b with SMTP id b16-20020a056a208f1000b00102345f593bmr32867476pzk.4.1684291663806; Tue, 16 May 2023 19:47:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684291663; cv=none; d=google.com; s=arc-20160816; b=MvsdG3+4d2HKhRi4LN+WJuZ6gRGJylb3gU5jLPI3ARsNqyOA1udZ00M5Pi/w/tCGcb Boh4I5AVTViOgxxsv5yHN2pZekju1Yf691wY3r+YuwgbSn/hYEsI6bo5iLTeGbluCQJk GOvOYiylIX5qaaXBXOkoB897tcW/Y6H6EVVcK1W8/SApX7d9sh7E4V21W8bdY0PuAD8R +2EJQM3HL+/U17P57RFoyE1N7N3CshnoUD2gxXVfNorh/q5EZfNBYUzlOOjocZ1lEpLL ViV3R/NbDLmsf+uZjrZLiYm09E6c5LWp8+QoXI0NH4ame/UE6NZwWqk6XoluNBrGsSBD rzTA== 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=Qi+cKtqezdFyUvUWiKAlBtLq9DRaLUQk4YKfNS1t+sM=; b=GlSkJAH+b3WtvP82I8Z3thLrWXlnpWnIFKc7q/HBrp0op1wwb2zSn8/CBN1hLAO00s Ocp5lksBB652izY9IXHoCBn302GXAnatwcHN7GnfcozctSY0yHQlqBUAENor5Mh1NZmv YeRR/x4sUX568VqKoNrfDTUU+qt8ceLEofHgOTrMEo9oI5olnaT9u3UE1YCVDmfZLcrE EuhHsKtiDFUZ9V3q/i7G6WXodwrP148+P+wZYS5k3WUb9hPCrcjI4P5dhj2d/GkUA0MC qHZTkhEYeSSKxDa0gIhrbtwZXyRVmX/pxDPnOlsEWHPSUjLFg/ZS2iIta3lmy3SaOeo/ 13NQ== 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 i133-20020a636d8b000000b005305ab8540asi17208016pgc.294.2023.05.16.19.47.26; Tue, 16 May 2023 19:47:43 -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 S232120AbjEQC2O (ORCPT + 99 others); Tue, 16 May 2023 22:28:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232129AbjEQC2I (ORCPT ); Tue, 16 May 2023 22:28:08 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 34CF5469E; Tue, 16 May 2023 19:27:46 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 9CD0B180120CAB; Wed, 17 May 2023 10:27:06 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: wuych 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, wuych Subject: [PATCH net-next] net: bna: bnad: Remove unnecessary (void*) conversions Date: Wed, 17 May 2023 10:27:05 +0800 Message-Id: <20230517022705.112448-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,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 Pointer variables of void * type do not require type cast. Signed-off-by: wuych --- 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