Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5127413rwp; Sun, 16 Jul 2023 20:33:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlFUa/ztHMcKYPR9mLzSuE0lyDw23Ge8h/pp59bSgNEQotriRo1hoyXeNdk2NEhZTjwERUvK X-Received: by 2002:a05:6a20:8f20:b0:134:1c06:1c1f with SMTP id b32-20020a056a208f2000b001341c061c1fmr8677058pzk.37.1689564817609; Sun, 16 Jul 2023 20:33:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689564817; cv=none; d=google.com; s=arc-20160816; b=SOWjTvEf2B8OMbDfFu7MZ6wcqZuPRa/3azJKJg7p8lhiHa4+jbKSVCrTUfutDS4XGL GJrQnpTdZAUvKuwE42viK+mln3dslyWKwmFFTa9yjxQ2yOTrO/k7pB8rP9e7NSug6oic a2SxNDk+datCJC/Vpbj7B9DMSKv/C+dVcj3LtAEuVMmCW+vKjbZ03Lg+lmLrVuXzCwku YvfwlaVq9O8YDNPAyaHc+fErmhaPbYRcSGZzMMdCIvFHSHHUzdp60HkO+uPCo5HPOv1P qffh9lbQO7ltIK1JJVTPEWjzxxtwyDaH4ORB6Ck+C5LqKPTm3YXGjauNcnRwbdKxEj28 rMFw== 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=Mc+aFb8rDHAgJrhqrTp2V5cU19ZfKbp6Bpvr88h2km0=; fh=h/9efll7V8daxAa4jOG4DuJjWmMYAkKnU0SjU0rbuI4=; b=cXDN49Ky4akIikHtuxdyO8ePzEqAW6wN/bTlvX3bJMCc4DPg4rqNkbBXilH9cfRdJL 8UpZYrafh8AGfzykPfJXq9m4iqNy5YwU4qTDygzpnJWI7VSMPvEbTnEgxHK0lgXoUWtT QY/hHeQQW/jqfKdo5Qp0L2CjVAC3m1Zu1scsJvmXlhUkhexRzARFLPX8rVkbBTzkzQZ1 j3XS+wR2xcULQQTyv2o6bcjXgrHh9xil1Zf8vjUpL2ogKsktbTsIbeX9tBqdG8wmuhS/ 5nlUsbXSdzdQIu9M+G6U89XLZ7RoeHSWGHaF1UMHCabgB7YLqmuWLShe0ZjxYo4wyqK5 UYJw== 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 ay22-20020a056a00301600b0067a39a4c12bsi10798561pfb.81.2023.07.16.20.33.25; Sun, 16 Jul 2023 20:33:37 -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 S231247AbjGQDNR (ORCPT + 99 others); Sun, 16 Jul 2023 23:13:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231331AbjGQDMr (ORCPT ); Sun, 16 Jul 2023 23:12:47 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 6CBCE18D; Sun, 16 Jul 2023 20:12:30 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 03B58601858F5; Mon, 17 Jul 2023 11:12:22 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Wu Yunchuan To: wg@grandegger.com, mkl@pengutronix.de, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: uttenthaler@ems-wuensche.com, yunchuan@nfschina.com, linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH net-next v3 8/9] can: ems_pci: Remove unnecessary (void*) conversions Date: Mon, 17 Jul 2023 11:12:21 +0800 Message-Id: <20230717031221.55073-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 ems_pci_card *). Signed-off-by: Wu Yunchuan Acked-by: Marc Kleine-Budde --- drivers/net/can/sja1000/ems_pci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/can/sja1000/ems_pci.c b/drivers/net/can/sja1000/ems_pci.c index c56e27223e5f..ac86640998a8 100644 --- a/drivers/net/can/sja1000/ems_pci.c +++ b/drivers/net/can/sja1000/ems_pci.c @@ -148,7 +148,7 @@ static void ems_pci_v1_write_reg(const struct sja1000_priv *priv, static void ems_pci_v1_post_irq(const struct sja1000_priv *priv) { - struct ems_pci_card *card = (struct ems_pci_card *)priv->priv; + struct ems_pci_card *card = priv->priv; /* reset int flag of pita */ writel(PITA2_ICR_INT0_EN | PITA2_ICR_INT0, @@ -168,7 +168,7 @@ static void ems_pci_v2_write_reg(const struct sja1000_priv *priv, static void ems_pci_v2_post_irq(const struct sja1000_priv *priv) { - struct ems_pci_card *card = (struct ems_pci_card *)priv->priv; + struct ems_pci_card *card = priv->priv; writel(PLX_ICSR_ENA_CLR, card->conf_addr + PLX_ICSR); } @@ -186,7 +186,7 @@ static void ems_pci_v3_write_reg(const struct sja1000_priv *priv, static void ems_pci_v3_post_irq(const struct sja1000_priv *priv) { - struct ems_pci_card *card = (struct ems_pci_card *)priv->priv; + struct ems_pci_card *card = priv->priv; writel(ASIX_LINTSR_INT0AC, card->conf_addr + ASIX_LINTSR); } -- 2.30.2