Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2161586pxb; Sat, 2 Oct 2021 08:24:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxI1VDzLrZHlMA9vC799J0hfxq0VAEE+VXkLO3wj+UdHlk9UN8ZQLDqJUYtnkm2tlUSkVXx X-Received: by 2002:a17:906:2a0a:: with SMTP id j10mr4773224eje.103.1633188286560; Sat, 02 Oct 2021 08:24:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633188286; cv=none; d=google.com; s=arc-20160816; b=zIvpp2WwY9KiCM3/ecThACal7hF/eQGInwl3Gfg6Y6GqPiOuGwX5ldvqMGR06uE6HY LAIV4wHe0+urQj3An8mnvjbzw2rl2TM2iiToCZs4Zk9aQ2Gvwd9/z2NR+s3zKCTZ8jtv IS/8bbEYqmmSDp/3GI8aaprsKK0Kmr17iDuftv0D/Ccyp2BFJ3q24Sp09VS/7AB7ENOq KrIdiWoARrkZb0DBpuK/b5ky8wcHq0Z895JY5vUnn8O6tYSUNhXAww4W9AFuhbEoYGss zuiDL5+GBUaBxcu5DvDD0Nv1hTeNiZZVX7I0jiT+7SfHMgvlQPz7xTooljk8zn2rXFsO cNUA== 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=3CcsIBkjnD7sDWaAM5mdqO8LXPHUnsgkAUC6h+d4KEk=; b=BJ8czmBpQDnGYYL8dTUxU55aRuaOIn0E0yTjj5FbN6+Eyp5TCOpasG2c3ig+SDzDu3 Tj7WvyDwwu0pT9Vp3kIsomXyjZS79UdQEWjCIbH/01bf999Fuot9DUyjo/TNHtiJ2Awu 20kC8UBnfpg5KvBgou/HTGhg33vlchtGL2GmR5YvdFqo7eKH/gml34Lf/Janp0VhJeik mc/m4MXMlWUHoL+1ycDUDNYwCZ1burrlKFs/d6gHjI1w6RsTzfldym5GDppnEyqmtpN1 t6vuU0+PnoBEx6TNsPx/RedoUHuVY1J095/ft74u0SUrjrCDgOQ2u0/cVhgYExS99b52 HbWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=J15ChbwX; 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 r11si11329843edq.315.2021.10.02.08.24.10; Sat, 02 Oct 2021 08:24:46 -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=J15ChbwX; 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 S233455AbhJBPPp (ORCPT + 99 others); Sat, 2 Oct 2021 11:15:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233274AbhJBPPo (ORCPT ); Sat, 2 Oct 2021 11:15:44 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A401C0613EC for ; Sat, 2 Oct 2021 08:13:59 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id r7so8524363pjo.3 for ; Sat, 02 Oct 2021 08:13:59 -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=3CcsIBkjnD7sDWaAM5mdqO8LXPHUnsgkAUC6h+d4KEk=; b=J15ChbwXUVu9rh26SHqVY8sa3JxBfK6+NkF3P+sW6CoB7qKhOr0DCh+uWiNSgdfVmn 2UlJbZNPi1qqbaR2ZodVYqfPRsfBQK98sE1sXV+y/9WSsbE/vh+fTHbV5uacQW8e0gwF SwbkM6yq7TuRa+JpqAfsqGTCvs7cQk4rb+a/O7oZmu5EG8iF6j1oWjDNKiwTQ0JzxWSi fP//HwDl+cjmVDKh+bQKU0YJk4vFp0ijv+l/5XNshglCev+EraQCX5LMVV2M3fbNmtbU 4e+eqWBHNXExmEQF6sLqhCdODyRWJOCRFwhBVvqKRZcIUc+EIPkHJoFDP7HnXe/hRcd3 TnPw== 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=3CcsIBkjnD7sDWaAM5mdqO8LXPHUnsgkAUC6h+d4KEk=; b=7NzQPtZDK/35xNH9rgoRLjWfBDu96XZg+A8/OB7KVDrKy2Tx4mNlhC5NmgN79beAnv jM4M8BC2lq5v77GC3wuNYakzoKDhdi9TGYTW+Ftc36Bv7QhMuqDfpufWc/3Lv15Hdr6v lIayP96Ehgv+y3gzNqQ0glLT0LbXlT7aEZzCa39WikAv0MDdYsqScBYQHSA68b6UZZkC FUlSJwYGmQGczCSHQ2Hkx0mTlL3RwUAbvYNQt5FiDoqvU9Z8GxEvcxE2nR4/4pRBHfE+ yyVb/XNI4QBcNppX7/R94MtnksXrZ4+LRMPx9NpO1KlhmcRn/Cxgki9bfZjCM3pLiobo cn7Q== X-Gm-Message-State: AOAM531d8v+OEKIhkP1Hx4t0U3NgKrOQz701uUNNgcRoap/pRLATr1Hq KszA/DGh9ebY6Cg3DPiN6WM= X-Received: by 2002:a17:902:dad2:b0:13c:a6ce:faea with SMTP id q18-20020a170902dad200b0013ca6cefaeamr15873437plx.45.1633187638437; Sat, 02 Oct 2021 08:13:58 -0700 (PDT) Received: from user ([223.230.105.60]) by smtp.gmail.com with ESMTPSA id k22sm9472702pfi.149.2021.10.02.08.13.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Oct 2021 08:13:58 -0700 (PDT) Date: Sat, 2 Oct 2021 20:43:52 +0530 From: Saurav Girepunje To: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, gregkh@linuxfoundation.org, straube.linux@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: saurav.girepunje@hotmail.com Subject: [PATCH] staging: r8188eu: core: remove unused variable pAdapter 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 variable pAdapter in Efuse_Read1ByteFromFakeContent. Signed-off-by: Saurav Girepunje --- drivers/staging/r8188eu/core/rtw_efuse.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_efuse.c b/drivers/staging/r8188eu/core/rtw_efuse.c index 801887f497cf..d33a5b3b4088 100644 --- a/drivers/staging/r8188eu/core/rtw_efuse.c +++ b/drivers/staging/r8188eu/core/rtw_efuse.c @@ -28,8 +28,7 @@ u8 fakeBTEfuseModifiedMap[EFUSE_BT_MAX_MAP_LEN] = {0}; #define REG_EFUSE_CTRL 0x0030 #define EFUSE_CTRL REG_EFUSE_CTRL /* E-Fuse Control. */ -static bool Efuse_Read1ByteFromFakeContent(struct adapter *pAdapter, - u16 Offset, +static bool Efuse_Read1ByteFromFakeContent(u16 Offset, u8 *Value) { if (Offset >= EFUSE_MAX_HW_SIZE) @@ -96,7 +95,7 @@ ReadEFuseByte( u16 retry; if (pseudo) { - Efuse_Read1ByteFromFakeContent(Adapter, _offset, pbuf); + Efuse_Read1ByteFromFakeContent(_offset, pbuf); return; } @@ -134,7 +133,7 @@ u8 efuse_OneByteRead(struct adapter *pAdapter, u16 addr, u8 *data, bool pseudo) u8 result; if (pseudo) { - result = Efuse_Read1ByteFromFakeContent(pAdapter, addr, data); + result = Efuse_Read1ByteFromFakeContent(addr, data); return result; } /* -----------------e-fuse reg ctrl --------------------------------- */ -- 2.32.0