Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3812518pxb; Sun, 24 Oct 2021 11:42:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXjPKgnGHEgg/eVgjJM+tZVZ8CwqEIeSUoZuj4ykHAzWoeyFi2GvNDzcHy4DQG+vNb87tM X-Received: by 2002:a17:906:6a03:: with SMTP id qw3mr17013206ejc.43.1635100945778; Sun, 24 Oct 2021 11:42:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635100945; cv=none; d=google.com; s=arc-20160816; b=vCM8uUVsf4PGxxicVCSbp1HkMwRvf9ZXJFCK1UggHENQF0Itj/dWCIsjr46NI1FpRg wlgD+EUkzCV40XUwTwtMmC/n1QBK5Gpkpk6PE91bYqw5r+MGXBffnbxKxcAtE6ipVdkQ Rjsxz8n9sk0X+Xk2gELKrn1Z2jYXKsNIt5nEzHLVcYJj9EzARH+lAvbTyRkZQVdmlw86 u0oTkG2DjID5UGAJq/3qtt4yrV4/u3BmLpYvS3KPnD0rCXLV/QIP5wkalma9LeSTtcRA rI/WsNgF6VYRhNw5FhzWlQlSdNYkLrEaBNBQfu9qiPYjCyyKlY4JN4L5FTtXYex9QeWf 6GSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=0mujV0YU/cPDCUxwyNfnmQlQiFEVg2B7mgv7g4IgXvs=; b=JFaiqMwfYTEc6UUkqNjsipD2jwIJrjYqIefEqAcQJ5Eo2rqMomIT09TUmAXrOGgum9 fbGEiR/PRAEvT8J8niBGJAqEmAN0dOVEux3wkveKDqen+nDTkAAjyowHS/Ci5bWBIAtg cphuoMLGp4mWbXOXYUF++ahBBOq4KYvnuRa5Bjvh4GS7VSmvVNOLy3C+UCWPWHAHQ7iC gxNjcEZ3p10hcyCnBroou/6a7bEXMoQlsTye7dENeFkxXhlhJ2e/UK4B7g/jC6Ys11nU xuSyoNh/fFq4j59MI8i922R9Ae1V2eb8wk0JvhjbEV/c/wa9M8WaJ7QH09GolIQi4Qyh RbCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WbxKS55m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si7860314edq.560.2021.10.24.11.42.01; Sun, 24 Oct 2021 11:42:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WbxKS55m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231912AbhJXSiF (ORCPT + 99 others); Sun, 24 Oct 2021 14:38:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229638AbhJXSiF (ORCPT ); Sun, 24 Oct 2021 14:38:05 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4441AC061745 for ; Sun, 24 Oct 2021 11:35:44 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id v20so6381503plo.7 for ; Sun, 24 Oct 2021 11:35:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=0mujV0YU/cPDCUxwyNfnmQlQiFEVg2B7mgv7g4IgXvs=; b=WbxKS55mTdOt2c8LaZWqEss4RjELhj6nYAaMb3ZE/1prdDrKPwWUm30D8yDsIvuUqP gyAaYiMCzYMISXFC6FNp1XGk/gOCTrnudrM8HCtWiZIttxx0Qg+uGsYxeFVDdwEdXHOg So9N2MIr/PeW3waefDTzY7qlx1Dk4cP0yXRVp+F2z0SBISBQONAANu3PK/onm++9SiDL 1hdsDDVQXjv5zROlc8Ng56VjOHO55ZItpPhJmIw5ThhHoWi0MTQ9iHvNkQoGE5Fo+l6v p5D8OgTTAxkaarZ6m9PEVkQyPBtvU6Tj1qllr2TRu9twHpGMz6T8UNSdcLgv+U4DECwU bzbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=0mujV0YU/cPDCUxwyNfnmQlQiFEVg2B7mgv7g4IgXvs=; b=6swRWxLazRrRUeRz5omIdXJ8y1wtItpu8XJ3xNy6sQWM0m1IeSr8rRjHo84MFtoEGx W/0NVXeYJFFRu4vJMd8G/cf2ByNU4VQg92XR1ccTMXd9aiaoin5+3RIIj4Kryv/UCXzz lCd+9jJ9OclDqjtjtpqm34VatLvOzI2qhLA+SEgZRXpAR0ubVfLyoD7kVyAcQsTbzJ8n Duvu0COLpm80sbt/OgYWYQSUCIZRphEvkGXI93u76OfJP9SxEAGfscmVmcVn//U8Y8k9 bowUf0mXH0Bmepvhwf/bAYa7cP0K6ZZ8yauA2qfo7vIxVgiMFturPubcIxOMYWtz5GrR SXIg== X-Gm-Message-State: AOAM531JMFaGfvN2JWel8cFCMzYYBWIChG+KxCi2iGE5GfxP1yPJgNn1 es6MHfDjIx8ykjHMEjdwZrc= X-Received: by 2002:a17:902:db02:b0:140:581e:6eb5 with SMTP id m2-20020a170902db0200b00140581e6eb5mr929816plx.46.1635100543701; Sun, 24 Oct 2021 11:35:43 -0700 (PDT) Received: from Sauravs-MacBook-Air.local ([59.95.95.3]) by smtp.gmail.com with ESMTPSA id b16sm16930936pfm.58.2021.10.24.11.35.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Oct 2021 11:35:43 -0700 (PDT) Date: Mon, 25 Oct 2021 00:05:35 +0530 From: Saurav Girepunje To: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, gregkh@linuxfoundation.org, straube.linux@gmail.com, saurav.girepunje@gmail.com, paskripkin@gmail.com, fmdefrancesco@gmail.com, dan.carpenter@oracle.com, martin@kaiser.cx, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: saurav.girepunje@hotmail.com Subject: [PATCH] staging: r8188eu: remove unused local variable Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unused local variable padapter from rtl8188eu_init_recvbuf(). Function is not using this variable. Signed-off-by: Saurav Girepunje --- drivers/staging/r8188eu/hal/rtl8188eu_recv.c | 2 +- drivers/staging/r8188eu/hal/usb_ops_linux.c | 2 +- drivers/staging/r8188eu/include/rtl8188e_recv.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/r8188eu/hal/rtl8188eu_recv.c b/drivers/staging/r8188eu/hal/rtl8188eu_recv.c index 9c191b7ffbf1..8031ac9f9d43 100644 --- a/drivers/staging/r8188eu/hal/rtl8188eu_recv.c +++ b/drivers/staging/r8188eu/hal/rtl8188eu_recv.c @@ -12,7 +12,7 @@ #include "../include/rtl8188e_hal.h" -void rtl8188eu_init_recvbuf(struct adapter *padapter, struct recv_buf *precvbuf) +void rtl8188eu_init_recvbuf(struct recv_buf *precvbuf) { precvbuf->transfer_len = 0; diff --git a/drivers/staging/r8188eu/hal/usb_ops_linux.c b/drivers/staging/r8188eu/hal/usb_ops_linux.c index 4c1974cc9a16..7912d7a6c31a 100644 --- a/drivers/staging/r8188eu/hal/usb_ops_linux.c +++ b/drivers/staging/r8188eu/hal/usb_ops_linux.c @@ -483,7 +483,7 @@ u32 rtw_read_port(struct adapter *adapter, u32 addr, u32 cnt, u8 *rmem) precvbuf->reuse = true; } - rtl8188eu_init_recvbuf(adapter, precvbuf); + rtl8188eu_init_recvbuf(precvbuf); /* re-assign for linux based on skb */ if (!precvbuf->reuse || !precvbuf->pskb) { diff --git a/drivers/staging/r8188eu/include/rtl8188e_recv.h b/drivers/staging/r8188eu/include/rtl8188e_recv.h index a91daf84d6c3..2ab395ef579b 100644 --- a/drivers/staging/r8188eu/include/rtl8188e_recv.h +++ b/drivers/staging/r8188eu/include/rtl8188e_recv.h @@ -40,7 +40,7 @@ enum rx_packet_type { }; #define INTERRUPT_MSG_FORMAT_LEN 60 -void rtl8188eu_init_recvbuf(struct adapter *padapter, struct recv_buf *buf); +void rtl8188eu_init_recvbuf(struct recv_buf *buf); s32 rtl8188eu_init_recv_priv(struct adapter *padapter); void rtl8188eu_free_recv_priv(struct adapter * padapter); void rtl8188eu_recv_hdl(struct adapter * padapter, struct recv_buf *precvbuf); -- 2.33.0