Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1223945pxf; Fri, 9 Apr 2021 03:14:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvuR9fB9+cu0JuFcCTITKOIvCk42HSEglsjLkqr76X0QBFVe72QOKt//aQ/Lyl6fdD3WBe X-Received: by 2002:a05:6402:212:: with SMTP id t18mr16822856edv.165.1617963277894; Fri, 09 Apr 2021 03:14:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617963277; cv=none; d=google.com; s=arc-20160816; b=yYsK98vm728Tw8TLXhFaYvvv0iUq3HzdAxMOBujwDKTCE9CgrWnIFU3ofJMh7+XLTF 9gXGJoWGhL9eGJ03Fc0cxUHESfSz5kVW3j9fvBe9uASp7Susi472qj84ecXJwd3yrLiQ DZiKpn5Knp01D4sS9jgCC5CYWOhed41749KNoMMqUXzo6UTHcrsYfHwbRgfGLTZJikp/ 32WFxLWwwu6FEurWOnsbLE5ZHJCm+R/RhHW46X7OZJvQDNpugSPjhtC6vXCWFA9VKvOR QDYxnmtdelEOB2BD6xrZiT6duC4ZYZMSPS5roAs3LZmcEa/UQDzHDhx+/PEPbyOYWhrD 59zw== 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=HkNYgYU1YHKm0Z1UO5d8nPKM2/cFIDGkUiKsAmSRBPY=; b=FIe8m3O5M7GwbhJeeBHj2NU4kfFa4p6bGiZ4fySE4IVSZ1uZbq7s4eqLV8ACw40AR7 SWbz01r0FarPhusyASxIWqRVfVphsCCPq/8v7NA7qmSmaNYGANPeJwBTwUnTxVABc2OP jRLs5w+Jqlm0/FR5q8233nuWHw8Sogec1EM3La2IA3iv0XFH7grHkBh/OgpbMaqH9g/J RrgnSn/ofoRWdD4OahHuTNmLL50LDc8UP6oA8yu9h4kdTX4FeQCz4G/zWWFxL8MhurOt Jm+S0VvzF2ZppoCRCvp6A6nOnUw9vBxU0Xii9OOHLEXKvJenQ0aJFZOUj+25tclUCRb+ z7qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TV0jDUjC; 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 p22si1605372ejm.148.2021.04.09.03.14.14; Fri, 09 Apr 2021 03:14:37 -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=TV0jDUjC; 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 S234236AbhDIKMU (ORCPT + 99 others); Fri, 9 Apr 2021 06:12:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234081AbhDIKE1 (ORCPT ); Fri, 9 Apr 2021 06:04:27 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3585AC0613AC for ; Fri, 9 Apr 2021 03:01:55 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id hq27so7714354ejc.9 for ; Fri, 09 Apr 2021 03:01:55 -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=HkNYgYU1YHKm0Z1UO5d8nPKM2/cFIDGkUiKsAmSRBPY=; b=TV0jDUjCAXJbookaohbCurQF9VNP01/WzG8EccM2hVtczfDwv6/ukoDBMFsWx0KryF ajApL7I2yEzMYEQQ2I5w2T41cDRKbMqY/fBUknMJc5uEmm8kdAFrtKUcaTwdqRCQfXAM 6SppRFElfkfPRi7JcyDU4WIN0gy1XU8N7WtlPFbXgNhI46I/PvYYZsNNOy9IyWlvHKcT ko+amq1hpPpjsvVcfH5dqF1EH8xx7+uQD+jovIbXLeBGrjMgcNj+Z5dKPPImzWk/RbQo 8qxvC4gQ27CEgmmsumxrTo3iyJWIws1yQU/uuHSgDq1Q92qlqe5tAM7lbdXe+X22Cz+x mvyw== 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=HkNYgYU1YHKm0Z1UO5d8nPKM2/cFIDGkUiKsAmSRBPY=; b=twA1ZOiD55aZVHsxQafJuZEeZor9k0qUn6r8iqK/UJl8lMCcc3Pmnnb/sRRiwPiQQV xLprZcLeKqL335CEafQx9eJNojbfA1S5BbaXzxOjjE9IgQBlm1kiIAKx9N6e3Oe7DNT1 KAXfI1L5mkL4tT390krNhuh6VFoufM+b1MRk2LkXxpkZhd1umv0SRvU1M0/w3hiU81Po 9zHqvstCGbuuT6wtJfc5gln2u9xAdSUDLQnYRohGPcj1ptDD6qfo4rBqW+dgTHBIJdTm McnGERJZvC0ZcxPU6jAbga4PaxG7wVeUHEHKLk46RLk01arS1irfZ2yKZ/PFvwv436vz vvAw== X-Gm-Message-State: AOAM530iq2bkKzM+hrgs1w4CmdJiTHIqvw/3D+UBj+tu/kzml7V3myjl sNgJWPDzopT2aFdJZnQpZ4dvGdCetfM= X-Received: by 2002:a17:906:2e8f:: with SMTP id o15mr14995995eji.171.1617962514008; Fri, 09 Apr 2021 03:01:54 -0700 (PDT) Received: from agape ([5.171.72.173]) by smtp.gmail.com with ESMTPSA id g11sm1136531edw.37.2021.04.09.03.01.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Apr 2021 03:01:53 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto , kernel test robot Subject: [PATCH 04/11] staging: rtl8723bs: remove unused variables and code block left unused in os_dep/ioctl_linux.c Date: Fri, 9 Apr 2021 12:01:32 +0200 Message-Id: <0e950e74565b573a98b851092cc2078045d5ac3d.1617962215.git.fabioaiuto83@gmail.com> 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: In function ‘rtw_dbg_port’: drivers/staging/rtl8723bs/os_dep/ioctl_linux.c:2548:33: warning: variable ‘preorder_ctrl’ set but not used [-Wunused-but-set-variable] struct recv_reorder_ctrl *preorder_ctrl; ^~~~~~~~~~~~~ remove also unnecessary conditional code block. Reported-by: kernel test robot Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c index 9735522f9cc8..d70e2d5d51e7 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c @@ -2543,14 +2543,6 @@ static int rtw_dbg_port(struct net_device *dev, break; case 0x05: psta = rtw_get_stainfo(pstapriv, cur_network->network.MacAddress); - if (psta) { - int i; - struct recv_reorder_ctrl *preorder_ctrl; - - for (i = 0; i < 16; i++) - preorder_ctrl = &psta->recvreorder_ctrl[i]; - - } break; case 0x06: { -- 2.20.1