Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1224810pxf; Fri, 9 Apr 2021 03:16:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgsKZTe0iU6W5wtaWav2Aaq9WLhYzd43xBoFm8enf8zgIjY/nkkRLhon8zMYcGaLP8Q7Em X-Received: by 2002:a05:6a00:2345:b029:20b:c007:f9a4 with SMTP id j5-20020a056a002345b029020bc007f9a4mr11694280pfj.42.1617963362822; Fri, 09 Apr 2021 03:16:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617963362; cv=none; d=google.com; s=arc-20160816; b=MB6fiZak4YIl1j/dz/udH4I2DCLQ6oYYPlHPGd87R3PCbp8ZAS2obvJKxqfNYctgeI FLVDE/5NCXHjYUaQhMZgFcoKmgoYSRoCNYI4ZrTXnPyMTcrjAecjrcJMjs9qXWliKPvD a6YHfdJE1R3x0XyPCs5oZG4cedpOR0lcoFmgYC2o9+eMHxd/r3tOHqf377BHWd5zEiHx bVsYET6ReM/QMsw15bEqtaFB4wD+8qm1537IENeF/qzoaQWpkZgiFKDxEGV1Ah/c5dFm nJoRTOMA9r/F5NIvAhBoH9RfL6NwaW2VJp9hS5+7lAZtIWsMhYZd8cA5tumOo0I3hB+d vQNQ== 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=wJ8/v9wK24aS5UXikGd6e9KbYisMB01d5v8N2b/3U7A=; b=krmOqn48qqC7UzRH100/jwwQCRBpVTRfo7OAFvCPy202BwI50v0JTAzLW09RxjP6gP U38kMGzY0TNvIiMpuxv8ZGD02VMv4Tbc4ZSOW+fZulILTgFjMbWv20gD1cD/n0nQJjdp G3GgtgoVflb7QNZV3eJ/Ov6Ga656ks0L3c16+OnJHCavuakymEKNpZ/06iU4diR847aS RAA3RM4GeQf9qlQFdZ7DBoztXHkk37n8JnhXFAN7MUwZeSVF96X4BJpedsv0R2j15/Yk Pqx6QaMqjv0aJFNJN4OgkYb3q104POmDkW80hiS9LikvugG3dDtts/RU+EzYABaSHT1i MHYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VAqidPpx; 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 d75si2594506pga.498.2021.04.09.03.15.48; Fri, 09 Apr 2021 03:16:02 -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=VAqidPpx; 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 S234172AbhDIKOJ (ORCPT + 99 others); Fri, 9 Apr 2021 06:14:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234195AbhDIKFI (ORCPT ); Fri, 9 Apr 2021 06:05:08 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76FEBC061761 for ; Fri, 9 Apr 2021 03:02:05 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id n2so7725984ejy.7 for ; Fri, 09 Apr 2021 03:02:05 -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=wJ8/v9wK24aS5UXikGd6e9KbYisMB01d5v8N2b/3U7A=; b=VAqidPpx2T2vRO2DcUlQUj3c21p45h+CAtoufrQ5nER7ogfjgDWILOUiXDZvOUYen0 o/Zbl5FYTjeZXiOibRJKxHooKLhMMqWIlgof4nYPfU5nIm4S6o4kte0cDcnFbqTBRMjQ eKHlQHQyPo4k1mn65R+kJwDTSuBEJCrie7Psqm13wdLyGe4dahPYr103HN2LQCQrtSu4 ISQTC1Qf+7jye5uGGhP06pqBKgXAYU+DI2xX6hzhMjkYMc+5C6+RXj1OwyaXvailpkGR ymEyz7daFwqLbO+NNivV7WGPVO9pM9x5D5QLNxpCSw88QjzwDKbl2wIK70kk3uls9HPq 8j8w== 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=wJ8/v9wK24aS5UXikGd6e9KbYisMB01d5v8N2b/3U7A=; b=HBy5sCG9kSFeXHBYPYQ4+BP9psFGaxgi6HmdoJVKxnVuW1jT3Wsocmpq6bXW8tRyT8 N9Ext8BjfpSt3quMHURNe+P0SqlIPfEzELEB4NWT0g5XbGPKmmAhvEcHgHDRk1GaYgQm pojEGTKeS/Wf//iBe1noZ9ogb87JD/y1nrG3iCNLBxurqgeKRqJBajRfHz+c4LeOw1QX ayYGxA2sGbRskxO+M6+odBe1tvzIDMFp+7grVEntQd6I55yhZikZC4ujthJ6B7u044Os wE5RDwE8zwZL2RCNtFYIYAk372wwTmlHOBwtOVKYD+GAhhAWgu+Bg33tkbE7gpxBBi0+ EyRA== X-Gm-Message-State: AOAM531ZE3V09qHcA5/LYLBB/gSfYmaQaN0w2tg2eYtySrovIj6Zd0+i EhARoPOnzS6IO339aX3fYyfY8eqIrwE= X-Received: by 2002:a17:906:7016:: with SMTP id n22mr6102564ejj.23.1617962524251; Fri, 09 Apr 2021 03:02:04 -0700 (PDT) Received: from agape ([5.171.72.173]) by smtp.gmail.com with ESMTPSA id g20sm1137983edb.7.2021.04.09.03.02.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Apr 2021 03:02:03 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH 10/11] staging: rtl8723bs: remove unused variable in os_dep/ioctl_linux.c Date: Fri, 9 Apr 2021 12:01:38 +0200 Message-Id: <6211c4177a9ef1e677987c9ebac445df08605f40.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 warning: drivers/staging/rtl8723bs/os_dep/ioctl_linux.c: In function ‘rtw_wx_set_mlme’: drivers/staging/rtl8723bs/os_dep/ioctl_linux.c:1128:6: warning: variable ‘reason’ set but not used [-Wunused-but-set-variable] u16 reason; ^~~~~~ Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c index 0ff6fbbb4e4f..6f52b8fb0d6e 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c @@ -1125,7 +1125,6 @@ static int rtw_wx_set_mlme(struct net_device *dev, union iwreq_data *wrqu, char *extra) { int ret = 0; - u16 reason; struct adapter *padapter = rtw_netdev_priv(dev); struct iw_mlme *mlme = (struct iw_mlme *)extra; @@ -1133,8 +1132,6 @@ static int rtw_wx_set_mlme(struct net_device *dev, if (mlme == NULL) return -1; - reason = mlme->reason_code; - switch (mlme->cmd) { case IW_MLME_DEAUTH: if (!rtw_set_802_11_disassociate(padapter)) -- 2.20.1