Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp894892rdb; Fri, 20 Oct 2023 02:34:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEKsWkgtkc/8li5g/vq+POBdihJksja9KNtrGvNynU2eNTZssDix6mTktXcuxN39TzuNwfi X-Received: by 2002:a05:6a21:3e02:b0:174:2fe:f6f7 with SMTP id bk2-20020a056a213e0200b0017402fef6f7mr1230624pzc.60.1697794497009; Fri, 20 Oct 2023 02:34:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697794496; cv=none; d=google.com; s=arc-20160816; b=VQP+NS/KhkP3/SHvcGrSPrdOpPpx75PTp4Z8qnvPR93Cd6RIcvJkt6Qp5PIkdmFahA tGxRpabkP4QDwcsAssegVcnbP6sje/lSo50sLTb0QqeVIyY19InQD+GYMh/qNsNSlf1m k9ZEiDZXcZywIodoatJ3OqxYTG+rV+MdoiJuyET4olzF7XNLztHQgYRXPIM+QDCaPof4 kBzcpfIoDj3N7z/H7ai3/P1UmDzD65msWhK4yUxm4S70cVQyty01oq0xfyg7powezX1V EmkgrU+u5G21H/5bxW4XaHSwMAh59H8qyAwOUcRvldmOy6geJT0xD3A95sZiITF5QO5y liRA== 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=mUNoJ+EhNXPNF1M3hMmEAeKPnYtQYEZvKTOEDUkxKz0=; fh=5K+pMUWwZsopUKex1elopHG/o9sh4Caple9o3YJ3OF4=; b=Ae/BkHeqWrtHY57Iq6K5t56MEO6+LUur+Mb8K6+iRl919V1kCS2pU6wU6ZUNcK6PZb AYoFdVxnCDMXxvZMHvdpnWpI68LI9PYraPqGsyfq3cQ8kMqva8eNBunfW9zHat+y7NXh Wy5yKWKysMyOjtUkGpuiszu7wTP1/b5g8zziCK+ofJi6ZAVraTkExITvaDjFA/J6sMDm suIn5LEgfIynWewl3iuVDZa0o4XecgiUEf+CTamBmYPVz5KWR+gPLmq0RyDpraSxboMD IcxUILGyXpuwQzSKS4FpvmhwolwstwpXIZegUr/5IrD1MtxTODrQ/rz+tl2M3x+lptJr mimg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id m12-20020a17090a71cc00b00274d5eb88c4si1497590pjs.90.2023.10.20.02.34.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 02:34:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id D676182C5164; Fri, 20 Oct 2023 02:34:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376729AbjJTJev (ORCPT + 52 others); Fri, 20 Oct 2023 05:34:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376770AbjJTJep (ORCPT ); Fri, 20 Oct 2023 05:34:45 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 434F0D5B; Fri, 20 Oct 2023 02:34:43 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 8621A60583963; Fri, 20 Oct 2023 17:34:40 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Wu Yunchuan To: kvalo@kernel.org Cc: Wu Yunchuan , dzm91@hust.edu.cn, christophe.jaillet@wanadoo.fr, horms@kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH wireless-next 1/2] wifi: ray_cs: Remove unnecessary (void*) conversions Date: Fri, 20 Oct 2023 17:34:31 +0800 Message-Id: <20231020093432.214001-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=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 20 Oct 2023 02:34:54 -0700 (PDT) No need cast (void *) to (struct net_device *). Signed-off-by: Wu Yunchuan --- drivers/net/wireless/legacy/ray_cs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/legacy/ray_cs.c b/drivers/net/wireless/legacy/ray_cs.c index 8ace797ce951..c95a79e01cd0 100644 --- a/drivers/net/wireless/legacy/ray_cs.c +++ b/drivers/net/wireless/legacy/ray_cs.c @@ -348,7 +348,7 @@ static int ray_config(struct pcmcia_device *link) { int ret = 0; int i; - struct net_device *dev = (struct net_device *)link->priv; + struct net_device *dev = link->priv; ray_dev_t *local = netdev_priv(dev); dev_dbg(&link->dev, "ray_config\n"); @@ -1830,7 +1830,7 @@ static void set_multicast_list(struct net_device *dev) =============================================================================*/ static irqreturn_t ray_interrupt(int irq, void *dev_id) { - struct net_device *dev = (struct net_device *)dev_id; + struct net_device *dev = dev_id; struct pcmcia_device *link; ray_dev_t *local; struct ccs __iomem *pccs; @@ -2567,7 +2567,7 @@ static int ray_cs_proc_show(struct seq_file *m, void *v) link = this_device; if (!link) return 0; - dev = (struct net_device *)link->priv; + dev = link->priv; if (!dev) return 0; local = netdev_priv(dev); -- 2.30.2