Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp418311rdb; Mon, 18 Sep 2023 21:53:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH5/YD6pnLqxaiBjGrYbFZgOXQhfVv1NoC4YU+wT9WpJpFsqA1OkfBHgqKDpKUP9Q/inErZ X-Received: by 2002:a05:620a:2549:b0:76c:bdbd:c521 with SMTP id s9-20020a05620a254900b0076cbdbdc521mr12401799qko.22.1695099192472; Mon, 18 Sep 2023 21:53:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695099192; cv=none; d=google.com; s=arc-20160816; b=JV11auA1UBkZA7ySGkFYxyZVa2Esl/YO6gYWrevKfDz/d0BqAitaOcmKlC8qf2gr3L KREHXkzwa6fFir2bNEJ+9W/osERyOA3Y0MyHXA+HLmMXy0b+LLcTKMI303DmiMl/WONg ECI8DiMRgD0fm8/GvruA7N56NWzGnQwaGOehV2QGGgbGbHXY7j6RlTXessgmkXDoNkWZ H8xKPa2sbVeRxuZYpFWVNXIHEWLbU6cgiZxNsEYRXNIqixf/Xblq5sxC2qiQHV2ywD73 uthPmfao1gOb7b06npSr/n8HvSJ2J2wHdZyoh+CUDwc6jaOkQthCvXsfZk+kGptd5upI ZLPA== 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=mZ2CMF0S+fpSf0lltZcyxSgJL+VzmF8hINLzZi6ZLmg=; fh=8QuKgDnGlR5yvgZ5G1w+kKOob8qpx4BocCn3K+crAPA=; b=RrfEuDM1so6ob+AHPmTR3QE5pY0ne0pDAp9TJ/JMGW9959o9rtN7Wx3WWZjO1rR39G tDWBq+f2gFSSBGBbaUxS9NxFf3EYNecoSV/jscqzdaUFSvd6KMigdNW4XSwn9fXDZ9mn 6KRK0gX5QqTjlsFn65BH62sOLN9AAmDMPBeKb2Uka9/Q9IPvhjx5BznQ3vlkFsIbFKzr 6BjcmvWmAR9dN0HG0p7ENmCCDNpcxbTOMxn81gfa4LFhJkCt32Dytn7p5PK++dN/5LqK nZi0QSf63zvtwqCyVPvqOq3VtLwxY0/WzeNvXVMfYHR1t5cF1P4Kasb/vxtfMzFLfRQT ULQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id l69-20020a638848000000b00573ed0023e1si8963576pgd.333.2023.09.18.21.53.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 21:53:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.34 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 99DBC8036E9C; Mon, 18 Sep 2023 21:50:58 -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 S231501AbjISEvB (ORCPT + 56 others); Tue, 19 Sep 2023 00:51:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231468AbjISEu7 (ORCPT ); Tue, 19 Sep 2023 00:50:59 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id AC1228F; Mon, 18 Sep 2023 21:50:51 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id D2C72602F96CC; Tue, 19 Sep 2023 12:50:49 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Wu Yunchuan To: kvalo@kernel.org Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Wu Yunchuan Subject: [PATCH v2 wireless-next 5/9] ath6kl: remove unnecessary (void*) conversions Date: Tue, 19 Sep 2023 12:50:08 +0800 Message-Id: <20230919045008.523730-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 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-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]); Mon, 18 Sep 2023 21:50:58 -0700 (PDT) No need cast (void *) to (struct ath6kl *) or (struct ath6kl_cookie *). Signed-off-by: Wu Yunchuan --- drivers/net/wireless/ath/ath6kl/main.c | 4 ++-- drivers/net/wireless/ath/ath6kl/txrx.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath6kl/main.c b/drivers/net/wireless/ath/ath6kl/main.c index d3aa9e7a37c2..8f9fe23e9755 100644 --- a/drivers/net/wireless/ath/ath6kl/main.c +++ b/drivers/net/wireless/ath/ath6kl/main.c @@ -852,14 +852,14 @@ void ath6kl_tgt_stats_event(struct ath6kl_vif *vif, u8 *ptr, u32 len) void ath6kl_wakeup_event(void *dev) { - struct ath6kl *ar = (struct ath6kl *) dev; + struct ath6kl *ar = dev; wake_up(&ar->event_wq); } void ath6kl_txpwr_rx_evt(void *devt, u8 tx_pwr) { - struct ath6kl *ar = (struct ath6kl *) devt; + struct ath6kl *ar = devt; ar->tx_pwr = tx_pwr; wake_up(&ar->event_wq); diff --git a/drivers/net/wireless/ath/ath6kl/txrx.c b/drivers/net/wireless/ath/ath6kl/txrx.c index a56fab6232a9..80e66acc5cf6 100644 --- a/drivers/net/wireless/ath/ath6kl/txrx.c +++ b/drivers/net/wireless/ath/ath6kl/txrx.c @@ -708,7 +708,7 @@ void ath6kl_tx_complete(struct htc_target *target, packet->endpoint >= ENDPOINT_MAX)) continue; - ath6kl_cookie = (struct ath6kl_cookie *)packet->pkt_cntxt; + ath6kl_cookie = packet->pkt_cntxt; if (WARN_ON_ONCE(!ath6kl_cookie)) continue; -- 2.30.2