From patchwork Thu Aug 3 07:34:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wu Yunchuan X-Patchwork-Id: 130359 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp979062vqx; Thu, 3 Aug 2023 00:51:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlEVeD6ZsP6n4IfnzUdi7GGkUvGpSsDQGF27A8c9/kC0MStZFpHQbl24NHQMuYSV3rewUp5o X-Received: by 2002:a17:906:95:b0:99b:7297:fbf5 with SMTP id 21-20020a170906009500b0099b7297fbf5mr7532961ejc.61.1691049096391; Thu, 03 Aug 2023 00:51:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691049096; cv=none; d=google.com; s=arc-20160816; b=O/laa1bET3cxMe6VlIdgETT9EEG94K0LHDrCPB16GMbzSL3YjJGcA2FDKI058ND8oT YHDzNB2bVn7V1USfoJtO6gqE7aNTtpjLZkop6uxeTDXtlTyhLqaQOF84gfzOdGafbXRO jnPOhdAA+uYfopBRrAXh1/4oaR9/7j5KTY7onAaBaw9AolqnH3/eQSfjAcqxmfh1AtUZ aSR+IFOAcGNcD9OWWecq3zgkF0xdMKEzIvs4iuQP252YrW/1H403pUbVNqnSL+63FL8d STKICiSk7LyYuAfjOa+0SjhRjUBTtnK9yWxGLCm6ym2xnbO3YWUNw1rXlr19HLazJAmn L8Cg== 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=5xX5bGyrxXrcJsrx6HTNV3HpSN+fn/qiBUh1jRpPhgY=; fh=GnYIWYt4wF11UKSmVHE1fObtcEHjZaq1jVq/pXgVGtI=; b=nDHxVsJdXpwAGXSp0fHFOZMdVQwx1T4jOUw76ec6JfmgYWfOCXbjpQU2UNM+IQBmok fcrMmKB1Q7p94c1BkTprt8l5UtJjHbxI4+Vu55lB0d3NKOXtxUUjVdtG41J0nPYRr+9i Vq2OYPFAMGcNaELmluD+5vVdiNLM3dbgxmvKoMeFXUUvpQGTlUyHRG4VAdrNkOAUXac6 mZTgs7YuxIj+flWLasBPCWb5ZfIqWG4TH+1r+InHjDxfCg/Vq0UhdBo/rWo2jBp7QIez WvmGi10ltnDSJImmgUGniPpSYLeffltb9u/f/0rRUko/CxeKIkJL3jU2pstmMK+O1xHS EdXw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gw21-20020a170906f15500b0099bd53f16b3si7633367ejb.391.2023.08.03.00.51.11; Thu, 03 Aug 2023 00:51:36 -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 S233055AbjHCHih (ORCPT + 99 others); Thu, 3 Aug 2023 03:38:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233430AbjHCHgg (ORCPT ); Thu, 3 Aug 2023 03:36:36 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id AA24630D5; Thu, 3 Aug 2023 00:34:48 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id C6FC16090B390; Thu, 3 Aug 2023 15:34:45 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Wu Yunchuan To: kvalo@kernel.org Cc: yuancan@huawei.com, simon.horman@corigine.com, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Wu Yunchuan Subject: [PATCH net-next v2 1/9] wifi: rsi: rsi_91x_coex: Remove unnecessary (void*) conversions Date: Thu, 3 Aug 2023 15:34:40 +0800 Message-Id: <20230803073440.3666204-1-yunchuan@nfschina.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773193497548286091 X-GMAIL-MSGID: 1773193497548286091 No need cast (void*) to (struct rsi_coex_ctrl_block *) or (struct rsi_common *). Signed-off-by: Wu Yunchuan --- drivers/net/wireless/rsi/rsi_91x_coex.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/net/wireless/rsi/rsi_91x_coex.c b/drivers/net/wireless/rsi/rsi_91x_coex.c index 45ac9371f262..372eaaa2b9ef 100644 --- a/drivers/net/wireless/rsi/rsi_91x_coex.c +++ b/drivers/net/wireless/rsi/rsi_91x_coex.c @@ -52,8 +52,7 @@ static void rsi_coex_sched_tx_pkts(struct rsi_coex_ctrl_block *coex_cb) static void rsi_coex_scheduler_thread(struct rsi_common *common) { - struct rsi_coex_ctrl_block *coex_cb = - (struct rsi_coex_ctrl_block *)common->coex_cb; + struct rsi_coex_ctrl_block *coex_cb = common->coex_cb; u32 timeout = EVENT_WAIT_FOREVER; do { @@ -100,9 +99,8 @@ static inline int rsi_map_coex_q(u8 hal_queue) int rsi_coex_send_pkt(void *priv, struct sk_buff *skb, u8 hal_queue) { - struct rsi_common *common = (struct rsi_common *)priv; - struct rsi_coex_ctrl_block *coex_cb = - (struct rsi_coex_ctrl_block *)common->coex_cb; + struct rsi_common *common = priv; + struct rsi_coex_ctrl_block *coex_cb = common->coex_cb; struct skb_info *tx_params = NULL; enum rsi_coex_queues coex_q; int status; @@ -168,8 +166,7 @@ int rsi_coex_attach(struct rsi_common *common) void rsi_coex_detach(struct rsi_common *common) { - struct rsi_coex_ctrl_block *coex_cb = - (struct rsi_coex_ctrl_block *)common->coex_cb; + struct rsi_coex_ctrl_block *coex_cb = common->coex_cb; int cnt; rsi_kill_thread(&coex_cb->coex_tx_thread);