Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1223928pxf; Fri, 9 Apr 2021 03:14:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLRd6llDgHBDrwKGcxMG+WGfjTXMni0OY//dGadmC4EGuJULD6IFUjmldtbkmozYDfojug X-Received: by 2002:a17:906:2307:: with SMTP id l7mr15748856eja.27.1617963275767; Fri, 09 Apr 2021 03:14:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617963275; cv=none; d=google.com; s=arc-20160816; b=upGelJpHhvhPiYG7VLN35iJuXTgBvckb7a5p2cJPVW0rJ79ROvUOhCWMds7c4j+w+5 0U5ocUtkVO0kDZFLlATosxyu9+bt54g3lOWL7q3vstw27JF+bRvv0bx/qx7HLg2UXFMh Qind8UaFBhwXXkWSXyVtR6QiAS0NVY7oIPoTlF3e+L0VmN56UzktDt4SBTpJbVyeBsyj MwuxwPj7KI9JhgQw+IOrhx6lE8jMurE2zYw6U0rnexuz9DqKY4yRaixuRm1+s6WY/Ei5 OmrohtZLxUFuDJJ7WACVSGfOLTodwGzdHoXlAifOkx2hud4YFDtaC32n7+28jnYj92Di 2y+g== 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=ngUBXQ+i2ihUjkp8gUBGkSrTyqifWX3PDUJCypzPc0w=; b=MzLcaG81v65f5nN8iCKyjjJ2U8/DjZIxvjmR1B1G5wCaJLchhqhB+6uIHXKMAXbsDc p5BP3+SNpfmp2V+DkH3i/Rx3aJIyY9aFSgAGpj+wX5DlTbTZT+oWNmNADGgAEgLjuKjR MYrI3OMo6E5oVEvBtrhaWaQUBO70IX8oYr6pJ8Y9huakbYV2A76esqS6hFh95XwVV86O GCNQvIZDxtS8/5UDCnLrsr4Sq6raNjupuvFo4gR9JfgYJRsD2V0JnigHqEhuSkTEDZqA 7VB+0Ztr+VLnnqk+GD3R9MVCKpTWvDjgTUvYMCjzjXtJb5a1fDqiEkcEjAYdeHy210f3 lwsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Xbfqbt76; 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 e11si653493edz.530.2021.04.09.03.14.12; Fri, 09 Apr 2021 03:14:35 -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=Xbfqbt76; 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 S233600AbhDIKMQ (ORCPT + 99 others); Fri, 9 Apr 2021 06:12:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234071AbhDIKEX (ORCPT ); Fri, 9 Apr 2021 06:04:23 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02C7FC0613EF for ; Fri, 9 Apr 2021 03:01:52 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id u17so7753675ejk.2 for ; Fri, 09 Apr 2021 03:01:51 -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=ngUBXQ+i2ihUjkp8gUBGkSrTyqifWX3PDUJCypzPc0w=; b=Xbfqbt76xPH1FnU2D64FvAPPybhnDiLrEROlO6EXEQU0/oUxfczf4ycy2jtKCVF4SU SxWP4UT6xmXN+xOJHfC9NxMt5a6v3n9VEkjLcMmy6rU9YUxZayFG4ro//4jhXzrOmKAy SDSU/3DhRBAb+IiBC2tWyDZtKHxSAXE9rixn+LEkGgmtLNitTU2brIJTpaYMu148fmqS cAKrJBbPFcTtXlOkxP+WV3Inc2v0fnNW05GEGpVd2EpPRmvwOg/DHb7c8yYvVcY3b6IW 7C5uVQdHH6E0fDlG8+lK3/X5fGyA4vOCeiDO42kAncWsG/KmN+hSAYz8c5b1ThyIC/V3 Tigw== 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=ngUBXQ+i2ihUjkp8gUBGkSrTyqifWX3PDUJCypzPc0w=; b=H2WGVWH5T7WLe1la76acWrr02715KkgXgAT5RcgGL45rVIbzWaqIx8ZZ13APs35WnR oEkYQ+Ak3l0M+KOlD9RcpzU3ZWyWcsdNDEf8hw2hdHhRVYqeqEFKwe3nJA4c8+uPc/m8 RYOsEBMRjDsjdLxEjkIdWKmNUacPcDGnFC4t8ghhiV6PpTCYEoc1wdLNGUywCW7uYh1v j4cfMCU6+jHLDLzogp6N8bcM95ieooc8uYH1N6nU8R/be/e8thTDa5NZ69HwW53JrzNL MKvPHu1C9HDfne5o79RyjrQAEWWkHQD4v/pvOCbTIk9HTG0tQjNbfZojONr5IIVeNY2t H2cg== X-Gm-Message-State: AOAM532SYqaUQFRy/svyA1KxYYSgWf01ZxFKjTLp/qYbGsnIzxtTAkQQ YTcHLzfGSVASTfjwrHX55e8= X-Received: by 2002:a17:906:af13:: with SMTP id lx19mr5961318ejb.508.1617962510731; Fri, 09 Apr 2021 03:01:50 -0700 (PDT) Received: from agape ([5.171.72.173]) by smtp.gmail.com with ESMTPSA id f21sm1128688edq.55.2021.04.09.03.01.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Apr 2021 03:01:50 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH 02/11] staging: rtl8723bs: remove unused variable and empty for cycles left unused in os_dep/ioctl_linux.c Date: Fri, 9 Apr 2021 12:01:30 +0200 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix following kernel test robot warnings: drivers/staging/rtl8723bs/os_dep/ioctl_linux.c:2573:33: warning: variable ‘preorder_ctrl’ set but not used [-Wunused-but-set-variable] struct recv_reorder_ctrl *preorder_ctrl; ^~~~~~~~~~~~~ remove also empty for cycle left unused and counter variable. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c index a9820d813d8b..303a236fe8e6 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c @@ -2568,9 +2568,8 @@ static int rtw_dbg_port(struct net_device *dev, break; case 0x09: { - int i, j; + int i; struct list_head *plist, *phead; - struct recv_reorder_ctrl *preorder_ctrl; spin_lock_bh(&pstapriv->sta_hash_lock); @@ -2582,10 +2581,6 @@ static int rtw_dbg_port(struct net_device *dev, psta = container_of(plist, struct sta_info, hash_list); plist = get_next(plist); - - if (extra_arg == psta->aid) - for (j = 0; j < 16; j++) - preorder_ctrl = &psta->recvreorder_ctrl[j]; } } -- 2.20.1