Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1882688rwo; Thu, 3 Aug 2023 00:54:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlGZj2lLKDRSiEWtwQj4xPR9ZcdxWqEmEGvmZLwNjg9nnLwwZ66W2t0rW5+RN/R2NtzNtklK X-Received: by 2002:a05:6358:42a5:b0:137:82e6:166e with SMTP id s37-20020a05635842a500b0013782e6166emr9226574rwc.18.1691049287907; Thu, 03 Aug 2023 00:54:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691049287; cv=none; d=google.com; s=arc-20160816; b=WgLQ3ihHp9V7OU2dfb4fue3uFkZQiKsDhOMtgtz8/XHHXQnxmOcCuLwIAhtEcEB7qj 6Y2fQYvUbYr2OdRaLwJicyXUWVD3uudDxSQYpdC9K78VvhC1K170UAGIKIqXNbcGDMrr YGUfxOYynFltTep11EQskmYzgvnAtXBgD31uf00IO2ZsoqdAocYahsLnsf7KtvvpUJP9 9sObXO+OFqsFgZ9F47Oz/bOx8AzHpi3G9/7EvEo1XteLLQnoKR8IpIWGqSArgN+l9xol tSppqIZzySTtInpAms0/rmyrl8ErSpBDXwE5x0u++VeHvk4wx02BhpPKzZ4klOYGtRCD TsGA== 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=eE0+KaSLQMSmjKkYX8bpeshw6Gw5YD9cCK9iKaJnwjc=; fh=QJoECkpWuTYFuF6E+pSR765hGawyGHpvvQawduv+Tn0=; b=UTikt4S3U5+bSf2EMaRW1hIfIa/pvSVhc+0CUSVrM9gUWq3ETlCJwHqSfLZoV5+ebp +qzrcxT6UH8NuO5Btb/CbGe2QcYUYuMxk6re7gnUNSHCEKs1cptdvij6aUX3xde0LBPH sU7MvQqf2VjMh0FpzYauY2tya6T707+9DIIDR0IiOXb4idZzEyLcPfPGcBSo83Z1Sm2h Vb6qq5uucyXDDhmj2VIjVwaNWiEsOtRbAN0//inTzP6C/6ICVZqC0bUfmA1cvhB5DmMV Qh21CgfwwUYXKXJ2anhE0sJaF5X23yF9Yto8VuWhK6SrV0/xQZlPYubFnPMU8vNfPG5+ PvIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d185-20020a6336c2000000b00548e140a1a6si12060980pga.66.2023.08.03.00.54.40; Thu, 03 Aug 2023 00:54:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231641AbjHCHjB (ORCPT + 58 others); Thu, 3 Aug 2023 03:39:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232559AbjHCHgy (ORCPT ); Thu, 3 Aug 2023 03:36:54 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 438733AB6; Thu, 3 Aug 2023 00:36:03 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 5FDD7609158B0; Thu, 3 Aug 2023 15:36:00 +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 net-next v2 8/9] wifi: rsi: rsi_91x_usb: Remove unnecessary (void*) conversions Date: Thu, 3 Aug 2023 15:35:58 +0800 Message-Id: <20230803073558.3666936-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,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-wireless@vger.kernel.org No need cast (void*) to (struct rsi_91x_usbdev *). Signed-off-by: Wu Yunchuan --- drivers/net/wireless/rsi/rsi_91x_usb.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/net/wireless/rsi/rsi_91x_usb.c b/drivers/net/wireless/rsi/rsi_91x_usb.c index 66fe386ec9cc..10a465686439 100644 --- a/drivers/net/wireless/rsi/rsi_91x_usb.c +++ b/drivers/net/wireless/rsi/rsi_91x_usb.c @@ -43,7 +43,7 @@ static int rsi_usb_card_write(struct rsi_hw *adapter, u16 len, u8 endpoint) { - struct rsi_91x_usbdev *dev = (struct rsi_91x_usbdev *)adapter->rsi_dev; + struct rsi_91x_usbdev *dev = adapter->rsi_dev; int status; u8 *seg = dev->tx_buffer; int transfer; @@ -91,7 +91,7 @@ static int rsi_write_multiple(struct rsi_hw *adapter, if (endpoint == 0) return -EINVAL; - dev = (struct rsi_91x_usbdev *)adapter->rsi_dev; + dev = adapter->rsi_dev; if (dev->write_fail) return -ENETDOWN; @@ -109,7 +109,7 @@ static int rsi_write_multiple(struct rsi_hw *adapter, static int rsi_find_bulk_in_and_out_endpoints(struct usb_interface *interface, struct rsi_hw *adapter) { - struct rsi_91x_usbdev *dev = (struct rsi_91x_usbdev *)adapter->rsi_dev; + struct rsi_91x_usbdev *dev = adapter->rsi_dev; struct usb_host_interface *iface_desc; struct usb_endpoint_descriptor *endpoint; __le16 buffer_size; @@ -306,7 +306,7 @@ static void rsi_rx_done_handler(struct urb *urb) static void rsi_rx_urb_kill(struct rsi_hw *adapter, u8 ep_num) { - struct rsi_91x_usbdev *dev = (struct rsi_91x_usbdev *)adapter->rsi_dev; + struct rsi_91x_usbdev *dev = adapter->rsi_dev; struct rx_usb_ctrl_block *rx_cb = &dev->rx_cb[ep_num - 1]; struct urb *urb = rx_cb->rx_urb; @@ -323,7 +323,7 @@ static void rsi_rx_urb_kill(struct rsi_hw *adapter, u8 ep_num) */ static int rsi_rx_urb_submit(struct rsi_hw *adapter, u8 ep_num, gfp_t mem_flags) { - struct rsi_91x_usbdev *dev = (struct rsi_91x_usbdev *)adapter->rsi_dev; + struct rsi_91x_usbdev *dev = adapter->rsi_dev; struct rx_usb_ctrl_block *rx_cb = &dev->rx_cb[ep_num - 1]; struct urb *urb = rx_cb->rx_urb; int status; @@ -362,7 +362,7 @@ static int rsi_rx_urb_submit(struct rsi_hw *adapter, u8 ep_num, gfp_t mem_flags) static int rsi_usb_read_register_multiple(struct rsi_hw *adapter, u32 addr, u8 *data, u16 count) { - struct rsi_91x_usbdev *dev = (struct rsi_91x_usbdev *)adapter->rsi_dev; + struct rsi_91x_usbdev *dev = adapter->rsi_dev; u8 *buf; u16 transfer; int status; @@ -412,7 +412,7 @@ static int rsi_usb_read_register_multiple(struct rsi_hw *adapter, u32 addr, static int rsi_usb_write_register_multiple(struct rsi_hw *adapter, u32 addr, u8 *data, u16 count) { - struct rsi_91x_usbdev *dev = (struct rsi_91x_usbdev *)adapter->rsi_dev; + struct rsi_91x_usbdev *dev = adapter->rsi_dev; u8 *buf; u16 transfer; int status = 0; @@ -559,7 +559,7 @@ static struct rsi_host_intf_ops usb_host_intf_ops = { */ static void rsi_deinit_usb_interface(struct rsi_hw *adapter) { - struct rsi_91x_usbdev *dev = (struct rsi_91x_usbdev *)adapter->rsi_dev; + struct rsi_91x_usbdev *dev = adapter->rsi_dev; rsi_kill_thread(&dev->rx_thread); @@ -572,7 +572,7 @@ static void rsi_deinit_usb_interface(struct rsi_hw *adapter) static int rsi_usb_init_rx(struct rsi_hw *adapter) { - struct rsi_91x_usbdev *dev = (struct rsi_91x_usbdev *)adapter->rsi_dev; + struct rsi_91x_usbdev *dev = adapter->rsi_dev; struct rx_usb_ctrl_block *rx_cb; u8 idx, num_rx_cb; @@ -822,7 +822,7 @@ static int rsi_probe(struct usb_interface *pfunction, goto err1; } - dev = (struct rsi_91x_usbdev *)adapter->rsi_dev; + dev = adapter->rsi_dev; status = rsi_usb_reg_read(dev->usbdev, FW_STATUS_REG, &fw_status, 2); if (status < 0) -- 2.30.2