Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp417327rdb; Mon, 18 Sep 2023 21:49:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEu8qvyU4YTyLY/zPXjjz07jNMduuRSuzdYpclik62uS4Pmsdk376lOCT/BNG4eYDfp98fp X-Received: by 2002:a05:6a21:7782:b0:141:d640:794a with SMTP id bd2-20020a056a21778200b00141d640794amr11062156pzc.39.1695098988218; Mon, 18 Sep 2023 21:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695098988; cv=none; d=google.com; s=arc-20160816; b=ZDWnSGNubaDFjiwpttHriGdoydJoRht3b7enMrZUZfObGAjFcSES5PRaLaTueSRX4g tnQxsIme10D1VMw2rs+ep8SuPi5uzmIuZWRFmP9fN8bvGknlOY5zbx8mDERSQqwBaAF8 DZ5/FcCj+LXk0QxOhABj+zkRZYux6bRgz/T9uE6DRf4Sdd/dEswSCbcIEuJzEb3P57+W AqVNPC0XG1pokBIlW8vjYqJm/YzjrYy3zuGSS0xumSEe6vmvyBrgeFSR/2etzXh6IZeI PFpim/jgvTmhxg0eUWe1gGNsG3zXQ7lxEYoLPEV2ZAd/86DaZM4kgGRCwNie2dKRi99J g8ug== 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=SMnFp05LZjgVlfA9K0LZPTe/Fj5MjrwBijsnM/WbiL0=; fh=S3WcaOMVg5cZB+cCKFvB6ahLw1ZxyNcfOpCDBDI0Fso=; b=kKslsBMM0jxxLSpKTVY3T02dDF7vZDMX2d4On1d7sGTn7VJNUw1uzLh/8OT1GJe0Ov TUJ5MeSG7f/w/KpvZ1TrTaYOCkYT869/VUc6EAwnKE/XN41WXYOxBzBsK0X91sau8snR hUze9cnvzSmR9EUq71828r8QTLo/sG6PAEHZQIocsV/GwHG7ifemARWXuxpn8hMFIYz3 Cc5XuUWqUFk6OzluhgfBaaTFnmDwxPjkIfEcizfSaY2WGVwLDs5IqaAdxqeFyDYP+JqB SnyrGfH9RSB4HrwsiueLoTh1UzSxkw982SoamPocPfve4v0PQRyfUGgEKy6PJ7myO7fm 2lrA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id c17-20020a170903235100b001bf3fe55e78si9489796plh.600.2023.09.18.21.49.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 21:49:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 6B567822B8EC; Mon, 18 Sep 2023 21:49:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231443AbjISEtT (ORCPT + 99 others); Tue, 19 Sep 2023 00:49:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjISEtS (ORCPT ); Tue, 19 Sep 2023 00:49:18 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 2EE14FD; Mon, 18 Sep 2023 21:49:11 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 3597D602F96E2; Tue, 19 Sep 2023 12:49:09 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Wu Yunchuan To: kvalo@kernel.org Cc: syoshida@redhat.com, johannes.berg@intel.com, alexander@wetzel-home.de, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Wu Yunchuan Subject: [PATCH v2 wireless-next 1/9] wifi: ar5523: Remove unnecessary (void*) conversions Date: Tue, 19 Sep 2023 12:49:06 +0800 Message-Id: <20230919044906.523189-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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 18 Sep 2023 21:49:20 -0700 (PDT) No need cast (void*) to (struct ar5523_cmd_hdr *). Signed-off-by: Wu Yunchuan --- drivers/net/wireless/ath/ar5523/ar5523.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ar5523/ar5523.c b/drivers/net/wireless/ath/ar5523/ar5523.c index 19f61225a708..43e0db78d42b 100644 --- a/drivers/net/wireless/ath/ar5523/ar5523.c +++ b/drivers/net/wireless/ath/ar5523/ar5523.c @@ -256,7 +256,7 @@ static int ar5523_cmd(struct ar5523 *ar, u32 code, const void *idata, /* always bulk-out a multiple of 4 bytes */ xferlen = (sizeof(struct ar5523_cmd_hdr) + ilen + 3) & ~3; - hdr = (struct ar5523_cmd_hdr *)cmd->buf_tx; + hdr = cmd->buf_tx; memset(hdr, 0, sizeof(struct ar5523_cmd_hdr)); hdr->len = cpu_to_be32(xferlen); hdr->code = cpu_to_be32(code); -- 2.30.2