Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18562500rwd; Tue, 27 Jun 2023 20:00:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4MB4fXg6GV5gA6SlP+Rd6H69+B1otoM6yW9QcR+GskO2r6/QiH47aHsX/fSetZEIDB/lqE X-Received: by 2002:a17:907:25c2:b0:978:8a30:aaf with SMTP id ae2-20020a17090725c200b009788a300aafmr25000632ejc.64.1687921213810; Tue, 27 Jun 2023 20:00:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687921213; cv=none; d=google.com; s=arc-20160816; b=mPMPmGkB4OcKxmBRCqw0bIzX35oFmm01Kc3dtgYQw0ETLPqjApTb0/ClPbfH43iKyq 1kKH9GYKbFvIk1VbhNdUlP7kR5zscKgVpBNWUx8Ke17a/V9iIo+Lp1Z848TbHtcnPEJv pSAatC025e9tN23CT0Mjhjc/WDjZ88jHtH+s8spHv5uQ/JlBImnoatnQ3tJ06ABKXQ37 rgDObaE4ALU9QNcPqAA+3CMv7y3u3d8ufJ+5VpAEpbDqXNJ2/DJCpyxXc5ss/vmTbU0k J+GuEFK+DtZOh1bRUIL/hT7QFmzfp8yq6R6TyFWffb/vQWuZa94nTmQ5fxCks2IUmzmH yU8w== 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=bx8kkp5kMR25PLhVyRiWVOGsacbQMK7Khjp3c3Ae/LM=; fh=eh0q8Yoju2kwzWQS1y2RLrA8iItonuDh6uNAbUexyCY=; b=Fhnjjzvi3vUaIfNGUIEfX2MBMLVd5lHDN6sbud47VSXyzC8aR9oq+qcsDvQrXrWfs4 ewlWul30aQfsJg+jHk/q3bps3yhliMe0hc/FLftNFsoHaNg6/yWU4dNskKJkGzc8QaBD BkEWgxxG2hGwOJMR5m9M93Hfci+1O0Q5Ag//watJNL6VAEEghuyRx8WgLgFmaoyhkZ33 LZmK7ZvhJaOhBms4AAoetiXT+O7r5xnrS/WVaZ6+5aicka0hpNvcMjvI9lQ+krGJBExB KD5W3nf0nj1V+qhzeDM4i7bTZg1AGZvFK5f636xu7cOQvuRo+Rql1rzf2oTv/MtBv9/W CoMA== 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 qx9-20020a170906fcc900b0098874379199si4800138ejb.163.2023.06.27.19.59.49; Tue, 27 Jun 2023 20:00:13 -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 S231343AbjF1CoW (ORCPT + 99 others); Tue, 27 Jun 2023 22:44:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231270AbjF1CoR (ORCPT ); Tue, 27 Jun 2023 22:44:17 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 8CF7726B3; Tue, 27 Jun 2023 19:44:15 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 513456032EB52; Wed, 28 Jun 2023 10:44:11 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: wuych To: andrew@lunn.ch, f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: ansuelsmth@gmail.com, yunchuan@nfschina.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH net-next 02/10] net: dsa: qca8k: remove unnecessary (void*) conversions Date: Wed, 28 Jun 2023 10:44:09 +0800 Message-Id: <20230628024409.1440022-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/dsa/qca/qca8k-8xxx.c | 2 +- drivers/net/dsa/qca/qca8k-common.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/dsa/qca/qca8k-8xxx.c b/drivers/net/dsa/qca/qca8k-8xxx.c index 6d5ac7588a69..dee7b6579916 100644 --- a/drivers/net/dsa/qca/qca8k-8xxx.c +++ b/drivers/net/dsa/qca/qca8k-8xxx.c @@ -1756,7 +1756,7 @@ static int qca8k_connect_tag_protocol(struct dsa_switch *ds, static int qca8k_setup(struct dsa_switch *ds) { - struct qca8k_priv *priv = (struct qca8k_priv *)ds->priv; + struct qca8k_priv *priv = ds->priv; int cpu_port, ret, i; u32 mask; diff --git a/drivers/net/dsa/qca/qca8k-common.c b/drivers/net/dsa/qca/qca8k-common.c index 96773e432558..8c2dc0e48ff4 100644 --- a/drivers/net/dsa/qca/qca8k-common.c +++ b/drivers/net/dsa/qca/qca8k-common.c @@ -760,7 +760,7 @@ int qca8k_port_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) { - struct qca8k_priv *priv = (struct qca8k_priv *)ds->priv; + struct qca8k_priv *priv = ds->priv; u16 port_mask = BIT(port); return qca8k_port_fdb_insert(priv, addr, port_mask, vid); @@ -770,7 +770,7 @@ int qca8k_port_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) { - struct qca8k_priv *priv = (struct qca8k_priv *)ds->priv; + struct qca8k_priv *priv = ds->priv; u16 port_mask = BIT(port); if (!vid) @@ -782,7 +782,7 @@ int qca8k_port_fdb_del(struct dsa_switch *ds, int port, int qca8k_port_fdb_dump(struct dsa_switch *ds, int port, dsa_fdb_dump_cb_t *cb, void *data) { - struct qca8k_priv *priv = (struct qca8k_priv *)ds->priv; + struct qca8k_priv *priv = ds->priv; struct qca8k_fdb _fdb = { 0 }; int cnt = QCA8K_NUM_FDB_RECORDS; bool is_static; -- 2.30.2