Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp323285ybc; Fri, 15 Nov 2019 23:37:14 -0800 (PST) X-Google-Smtp-Source: APXvYqytYJRuH51+QiRF8x/Zzrt5GCiuQ7QravOiDCK5RTHFI0Z/nBSM01hYd/Uxnt80HILSSXBY X-Received: by 2002:a17:906:3458:: with SMTP id d24mr7775066ejb.271.1573889834287; Fri, 15 Nov 2019 23:37:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573889834; cv=none; d=google.com; s=arc-20160816; b=ebdOHN4yCp3RKz0Id/eZYUtAGaY5JJKTrmNzsmyT+Atc37xyWquxBLpvKmyOIPsArb woXWsdUWKCnw84Zqvh5ZmbZg3OKLW98w112JPVxkTdaG4IdFu3vi6N5b0BSnOK9RTG14 +xgejlhnESDDY6a1wmN3VU8sVOpmweRdsb0ww1vq2UbxYXvPFpbi0zMnrvmT7SF8aSks l0ebbz8AoD0OfytmRHHNQgjNB2WO2mDlZQL/v1N+E1DVeoHZ9IXHZ8nkOeT2kQU2jrtR 9ZlLaA1tYKGxZCoGiE3yaPPT/Uu1g1Q9GCRCckyDkMXzBBq60ca7mdrSxm23CzXQnzcD 4GVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=mtJE9L1SlHI9rpDNGPKUHATyDZfln7i/LKH6Odtgsfg=; b=KsHrmmz0pF1AZQK0Yz98Ny/ulaNPEqBFXDH/pfzOh1V7UX9YH1vGrz7pUmntGKvHQc jfIxBwa8ru5JtZDBXkYfUVXT2OAJiwhmKWcF3AEku/AYYMTMRoyw8ueuQLDKOfN57iJS aGWKIgoznhX2+G/Njt4N7hFwUEGy5Rma78w0carVmcywknNRI4WZmZnWsCJKARfbV2ma wopfLGR48dbl7kSt6LMu2c2E21Go1QFior2ubFeutv7qQU1r/UbDT5tucbJ4aH+9djVY QLRXEXsdB94Bz/WtC6SUlE0UjqkuY4Vm2Cx76LgICF+gijW4bH46Gux+IAydZJcCskEv I9hQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q12si7468152ejn.435.2019.11.15.23.36.39; Fri, 15 Nov 2019 23:37:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726197AbfKPHeJ (ORCPT + 99 others); Sat, 16 Nov 2019 02:34:09 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:6684 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726034AbfKPHeJ (ORCPT ); Sat, 16 Nov 2019 02:34:09 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 9CB5E6AA3D2E3713EDA0; Sat, 16 Nov 2019 15:34:06 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.439.0; Sat, 16 Nov 2019 15:34:00 +0800 From: zhengbin To: , , , , CC: Subject: [PATCH -next 2/2] ipw2x00: remove set but not used variable 'force_update' Date: Sat, 16 Nov 2019 15:41:23 +0800 Message-ID: <1573890083-33761-3-git-send-email-zhengbin13@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1573890083-33761-1-git-send-email-zhengbin13@huawei.com> References: <1573890083-33761-1-git-send-email-zhengbin13@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/wireless/intel/ipw2x00/ipw2100.c: In function shim__set_security: drivers/net/wireless/intel/ipw2x00/ipw2100.c:5582:9: warning: variable force_update set but not used [-Wunused-but-set-variable] It is introduced by commit 367a1092b555 ("ipw2x00: move under intel vendor directory"), but never used, so remove it. Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/net/wireless/intel/ipw2x00/ipw2100.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2100.c b/drivers/net/wireless/intel/ipw2x00/ipw2100.c index 8dfbaff..c4c83ab 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2100.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2100.c @@ -5565,7 +5565,7 @@ static void shim__set_security(struct net_device *dev, struct libipw_security *sec) { struct ipw2100_priv *priv = libipw_priv(dev); - int i, force_update = 0; + int i; mutex_lock(&priv->action_mutex); if (!(priv->status & STATUS_INITIALIZED)) @@ -5605,7 +5605,6 @@ static void shim__set_security(struct net_device *dev, priv->ieee->sec.flags |= SEC_ENABLED; priv->ieee->sec.enabled = sec->enabled; priv->status |= STATUS_SECURITY_UPDATED; - force_update = 1; } if (sec->flags & SEC_ENCRYPT) -- 2.7.4