Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1223083pxf; Fri, 9 Apr 2021 03:13:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyz0PghHvjgxDWyTQlbC/0JezazjwwLqvUViKt1JpGrjJggKP1i1Acp54uxCPedwIX0wgop X-Received: by 2002:a17:90a:f408:: with SMTP id ch8mr3231199pjb.56.1617963189977; Fri, 09 Apr 2021 03:13:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617963189; cv=none; d=google.com; s=arc-20160816; b=ih+TT3kbPuxTR0x86xJtvwqRragPZmB/IZiLVMUOIjd448ajIz38dlhwtse21I4WSp Po2EKcKJHDIfcvTeyL61LbiyNmjDKeOLKUyBjAYWn5xkpDjmcaKFNgFPWwkuLtWJVeX1 gAvSkga4J/CUcQ3vBiv38Tp2tFlcou4HGILw5vvpk6YbjaRQX+G67McTNBNVMQaC4Q8W ZXPy1wikNfntYpBnssFEdqxUUK7BCBTBXXb/BIwwjhgwxXEbH93opSHt0zff7GLFs2MK 9KXX0/2xPYEdS4+a3fETa6Z/0jEcRywH/73LACrHT2DxHmvJXqdVPxL2DyBvTx1Cb2+E eRCQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=t5MrkBplUUW0jMP76detLuZqvjeuH5bGcdiLHmrpOV0=; b=tuI9BUW1lCS239GsLyASjskUR0/JuXMbnJe+G1TATBMH065iWzHCa03NMfDtiPC9Ld m8yM0kM16lF+uOfvTPPz+O1mVnzqUxrpD9nUUAx9lAr1AFOWW9PvKE2wtI/yWFVc9BOB 7uw4qrAb4U7ynggm5JZVwNKefanwrZtYTsWHXfYnsmLAEe/5SGwElM5/zBkuaa7usX5P xvAsCcwMfE0FyM+hvdbACBRKwK5fQm5m4pUvxE1HNdA+utMPSfNG2Zw0/Ze9h57wLsXu F70EaCQyCX9tRmJ3UNl35bkdxqnBruat9vxId6Dr2Y1PauFDWpdWo8UGXlpizQLYtwfH 4Eyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aOKZyoK1; 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 h3si2501597pjt.24.2021.04.09.03.12.58; Fri, 09 Apr 2021 03:13:09 -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=20161025 header.b=aOKZyoK1; 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 S234077AbhDIKMY (ORCPT + 99 others); Fri, 9 Apr 2021 06:12:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234080AbhDIKE1 (ORCPT ); Fri, 9 Apr 2021 06:04:27 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2962C0613F0 for ; Fri, 9 Apr 2021 03:01:53 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id l4so7699584ejc.10 for ; Fri, 09 Apr 2021 03:01:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=t5MrkBplUUW0jMP76detLuZqvjeuH5bGcdiLHmrpOV0=; b=aOKZyoK1e7xHR3B6+TTvGsvy9sUdH3GQq2Fv6Mydx42N9wb5bBcJPrvUplwtR/mqNk lrpLTCajPmlYyZsioQDRdcUBoIssh38Cf6xj6eW4Et+tSg98A7BF500IqwE9J5RXaKvn gpD6Wwh8Bvmgnv0eVHt9T//bAkPEWWzhSDSSB9eM1/FrzRVD91KHTEX/DDJxcocP9JSa pvxxqJ4RF13jL22G7mf+MwZaTF4kpHaJtve1xd7GJ1uX/DrP4BvMwnAYCsep6g5/Gfzb atGaAdIOs/W6FuEQkEaz2O12XQmK/HmVZTaYLA3tD7vVTOOc1Xk3bX25ItopYco24hzy /kUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=t5MrkBplUUW0jMP76detLuZqvjeuH5bGcdiLHmrpOV0=; b=EikpM6vpYbsJfd1oJatAbzdD9yFoSEQzxut1sZiWd7AMXfkn+ztV7Dc9SwWPpylSYp Q5UjANlee45rCf+YBqlKHwQD11ITpsEg+frQm1hXc9+ZNNzibuOt9y+iHl22YnCj+AVg CutABfAcLopMBn9aTunqBp6hN+jCR+s0jDPWFvZdf7sDxg0KNUbF42D5lsyWck68HEsR Jpe0Q/d9Dw5SOleYcsSrtnbvCnTfUwoRRtLKkVGD/LX67gxS+MM9LB440RYknHMbmxev G2yhYCWKPtJFUF3mXh3EnBSJhhcvZVlxwT87xevk0ngyU3QhYa1Jnyzkeq5s8vSfLIg4 33bA== X-Gm-Message-State: AOAM532CZL7jLiu1jxz7OSPSJmUs/TS9k6Lhm6VC+g8OMbGfM9Q80Un8 +Bxy8q7MXYalAMkeMebNNXyS+yGwXkA= X-Received: by 2002:a17:906:1351:: with SMTP id x17mr15651133ejb.242.1617962512476; Fri, 09 Apr 2021 03:01:52 -0700 (PDT) Received: from agape ([5.171.72.173]) by smtp.gmail.com with ESMTPSA id h8sm1114387ede.25.2021.04.09.03.01.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Apr 2021 03:01:52 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH 03/11] staging: rtl8723bs: remove unused code block in os_dep/ioctl_linux.c Date: Fri, 9 Apr 2021 12:01:31 +0200 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org remove unused code block which does nothing. A list is parsed but no value is written outside the scope of the function rtw_dbg_port. Signed-off-by: Fabio Aiuto --- .../staging/rtl8723bs/os_dep/ioctl_linux.c | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c index 303a236fe8e6..9735522f9cc8 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c @@ -2567,26 +2567,6 @@ static int rtw_dbg_port(struct net_device *dev, } break; case 0x09: - { - int i; - struct list_head *plist, *phead; - - spin_lock_bh(&pstapriv->sta_hash_lock); - - for (i = 0; i < NUM_STA; i++) { - phead = &(pstapriv->sta_hash[i]); - plist = get_next(phead); - - while (phead != plist) { - psta = container_of(plist, struct sta_info, hash_list); - - plist = get_next(plist); - } - } - - spin_unlock_bh(&pstapriv->sta_hash_lock); - - } break; case 0x0a: { -- 2.20.1