Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp417247rdb; Mon, 18 Sep 2023 21:49:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEVNqFzxw2qyPsiOzGGrELHSow2gOm79zR2zrorSsHslEgki/bIJZbSQSpfXdXNN6SUPAwL X-Received: by 2002:a05:620a:1714:b0:760:7760:fdaa with SMTP id az20-20020a05620a171400b007607760fdaamr9849743qkb.12.1695098971004; Mon, 18 Sep 2023 21:49:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695098970; cv=none; d=google.com; s=arc-20160816; b=pzW6P+x7XV8BdKlTcIPO3B481ZZziCKz5ZHt97gIp3GP+X32dIBPCG87W/4nhNwq82 y7J40V05IdOSjbK+WmyAVOkJf1I7Ng7aXQt8VL4k9UPz59E3PowIQsZDAxJGDLfEkJgB a4taSHe7h6haMazR344T63heF5X+jo4Avy/9AN2Ow6DJQ4o87s6HMIrhCftLW0VhMTjM f53Wgq2GbbhhLiwq4mLBR2FoFhDmkTPZpNO4koQUzX1LT92TKVJNBJrUiiRwF2t+YA7/ aLrGraDdx1SnbCiePtpbbPcwhZdvyCrPXnjYvXpREW6yuY5nLy/ZwhBNoPH45nketpgg XC3g== 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=pAADlbpNd2SnCnqTJtVW13zPb8VBkd94eiwVE8i9dEA=; fh=9t21vDbh0T2G/kR4/Tjmh3VEFpcPU66JbcqzDZC6ZkY=; b=LiUD9MuUDM4fZo3iS9K6SuDnvoVODI85hcDfesvog8OfTmroDvs1STnkPRyQl1N72s YgdWUp6xTTavD/TaRq6Cd0589msODHlBg+3CvEIdCTWI/qSs9fy3fpCyIKA8H/f3zV0V tjpzpSLen8k7GGaHxX9bswig6Gia7VcvdPzS5uj5FtmZRuOW+JQoO0UyWY+pHQCxCfgs sSxcvY512bO2a7snk/3SglUGamqZHv/2+3SEUOmyLyX+lqGZGwdGjLLChcrQ2MVtZ3rE cZK1oH2dLiWhcFuiYJ1zP47elofVvOT64hf03iwfQa+kBhLct8Bvbbm/gYHmNE7giMhC ZwDw== 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 b10-20020a6541ca000000b00578b6e32b60si467064pgq.126.2023.09.18.21.49.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 21:49:30 -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 181578328AFF; Mon, 18 Sep 2023 21:49:30 -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 S231476AbjISEta (ORCPT + 56 others); Tue, 19 Sep 2023 00:49:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231453AbjISEt2 (ORCPT ); Tue, 19 Sep 2023 00:49:28 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 3ECBC115; Mon, 18 Sep 2023 21:49:21 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 866E3602B36DD; Tue, 19 Sep 2023 12:49:17 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Wu Yunchuan To: chunkeey@googlemail.com, 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 2/9] carl9170: remove unnecessary (void*) conversions Date: Tue, 19 Sep 2023 12:49:16 +0800 Message-Id: <20230919044916.523308-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:49:30 -0700 (PDT) No need cast (void *) to (struct ar9170 *), (u8 *) or (void*). Signed-off-by: Wu Yunchuan --- drivers/net/wireless/ath/carl9170/usb.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/ath/carl9170/usb.c b/drivers/net/wireless/ath/carl9170/usb.c index e4eb666c6eea..c4edf8355941 100644 --- a/drivers/net/wireless/ath/carl9170/usb.c +++ b/drivers/net/wireless/ath/carl9170/usb.c @@ -178,7 +178,7 @@ static void carl9170_usb_tx_data_complete(struct urb *urb) switch (urb->status) { /* everything is fine */ case 0: - carl9170_tx_callback(ar, (void *)urb->context); + carl9170_tx_callback(ar, urb->context); break; /* disconnect */ @@ -369,7 +369,7 @@ void carl9170_usb_handle_tx_err(struct ar9170 *ar) struct urb *urb; while ((urb = usb_get_from_anchor(&ar->tx_err))) { - struct sk_buff *skb = (void *)urb->context; + struct sk_buff *skb = urb->context; carl9170_tx_drop(ar, skb); carl9170_tx_callback(ar, skb); @@ -397,7 +397,7 @@ static void carl9170_usb_tasklet(struct tasklet_struct *t) static void carl9170_usb_rx_complete(struct urb *urb) { - struct ar9170 *ar = (struct ar9170 *)urb->context; + struct ar9170 *ar = urb->context; int err; if (WARN_ON_ONCE(!ar)) @@ -559,7 +559,7 @@ static int carl9170_usb_flush(struct ar9170 *ar) int ret, err = 0; while ((urb = usb_get_from_anchor(&ar->tx_wait))) { - struct sk_buff *skb = (void *)urb->context; + struct sk_buff *skb = urb->context; carl9170_tx_drop(ar, skb); carl9170_tx_callback(ar, skb); usb_free_urb(urb); @@ -668,7 +668,7 @@ int carl9170_exec_cmd(struct ar9170 *ar, const enum carl9170_cmd_oids cmd, memcpy(ar->cmd.data, payload, plen); spin_lock_bh(&ar->cmd_lock); - ar->readbuf = (u8 *)out; + ar->readbuf = out; ar->readlen = outlen; spin_unlock_bh(&ar->cmd_lock); -- 2.30.2