Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2969952ima; Mon, 22 Oct 2018 20:40:38 -0700 (PDT) X-Google-Smtp-Source: AJdET5ct7DGKWJ6CUFjzfBAlOIyKIGLZS7UDv4JFhjm38oCDHtAkUC3dDO/4DVfDY6gN1zkcW/vp X-Received: by 2002:a17:902:8e86:: with SMTP id bg6-v6mr11400685plb.127.1540266037994; Mon, 22 Oct 2018 20:40:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540266037; cv=none; d=google.com; s=arc-20160816; b=l3PLoizrVSTDb0/qElTwZrhUMdLH1T7GDz8k36nHq20F9xXfIBXwO4tfo2og6GGque SP8dyFTFWmUIrX+fpIu2dZcztS7WTD05LSku9ek0OODwhQrSVWC+j5/rSRvn6eqNv0nT QeBskq0Y9QZqiGosFxYqLcPJf7HUgnLQx3NYEtmagxr2Ogz+tHcmXTYre8osvACtFN+q VsOF3MrklUweYzCTJVLTntFBsg1xtf6/DG6T9FeIaHLyDUtxRzwyxNC6wW1gRCDydLbJ YgStRPu6mrHe8Nz1t8YoXcHbksiSHwoZfIzw/PN3LZZ/2oLkfnJyEWRQiClXhPTiLaY3 3kmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=lFmSthYTjdG/ONeexoEIZqqu8gdJadQh/PXLF7FTyMc=; b=s+Q3yLpaTPZ5l+E85yHx3haP4pVjBCtwvFoX+kR9JlvGik/YtBKu7zTiOuwIAxIw9p 1VfNxkCLyc3k3UsjVQRdToPlA4I+dqxvB6pedpP0YTnPGxDwiAhE57cji/Ojs6BsuDN+ rRpdvISu7sO9Zo4/KbhIT7diEPTKyzTGRjm4HbZEytje9Vbpr31jlo241VHWep/bvtvC 8NJiK2eaKkG8xLqopCHrNsMF5LDj2fxWHCGuvnnFNZ1VybumVs2y9Ofv/W/Ok3bIiL5r XEgrz5cHXzdoefqFEebzmM0mco1910eTjVUN3b0nRNWaJHANxmGA583c1M/eXSB0vXA2 37nw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 c18-v6si607157pfc.153.2018.10.22.20.40.21; Mon, 22 Oct 2018 20:40:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727369AbeJWMBX (ORCPT + 99 others); Tue, 23 Oct 2018 08:01:23 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:14103 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727131AbeJWMBX (ORCPT ); Tue, 23 Oct 2018 08:01:23 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 7158511589C7E; Tue, 23 Oct 2018 11:39:53 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.408.0; Tue, 23 Oct 2018 11:39:52 +0800 From: zhong jiang To: CC: , , , , Subject: [PATCH] ath9k: remove set but not used variable 'new_flags' Date: Tue, 23 Oct 2018 11:27:14 +0800 Message-ID: <1540265234-58050-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org new_flags is not used after setting its value. It is safe to remove the unused variable. Signed-off-by: zhong jiang --- drivers/net/wireless/ath/ath9k/ar9003_mci.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mci.c b/drivers/net/wireless/ath/ath9k/ar9003_mci.c index 0fe9c83..9899661 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_mci.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_mci.c @@ -1055,17 +1055,15 @@ void ar9003_mci_stop_bt(struct ath_hw *ah, bool save_fullsleep) static void ar9003_mci_send_2g5g_status(struct ath_hw *ah, bool wait_done) { struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; - u32 new_flags, to_set, to_clear; + u32 to_set, to_clear; if (!mci->update_2g5g || (mci->bt_state == MCI_BT_SLEEP)) return; if (mci->is_2g) { - new_flags = MCI_2G_FLAGS; to_clear = MCI_2G_FLAGS_CLEAR_MASK; to_set = MCI_2G_FLAGS_SET_MASK; } else { - new_flags = MCI_5G_FLAGS; to_clear = MCI_5G_FLAGS_CLEAR_MASK; to_set = MCI_5G_FLAGS_SET_MASK; } -- 1.7.12.4