From patchwork Thu Nov 2 14:31:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 117821 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2243453qgn; Thu, 2 Nov 2017 07:31:53 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TuejFrjJAsx+bQJd1vi4mH3AevImBFvOR/dn9t8xwgZytBXwSoxO/2Mm+jRcE/0mvMYT7e X-Received: by 10.99.167.12 with SMTP id d12mr3764989pgf.414.1509633113750; Thu, 02 Nov 2017 07:31:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509633113; cv=none; d=google.com; s=arc-20160816; b=ZIzki3iByDG2fHOut/cxXvHg0nfWBZnS+UXSzHB/6KCwBPwXXiWbwtXsmqP0N+hYDW ZeCCfl7+oHY1rhqNYM8DYUQCU8tDVn6vjlnJexURJx14tfEJg5M7WTzHxs+KT9DCu71V 1SDJIx7RwTa/TYIdRGlFlYriG7DhR82ts6CE+E83SgtIKb/EZ09nKM9Rj7TKIywQmVo0 23DAOhrFzgyW+/WI2xT6MQsAPorO+fUg6HYlTiipe0k7KpfQYXrHeePkHZ9JuhFUXmIN 1tMrfIuX46deV4/AQJhRX666qLUBoTHdiOzWqQyY+HpYW+PzTKLhgKUjldLnPRQ0W6Gc /crg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=hbO5t/qOmaT6Ci60D+VkOA6D0cDRKNShkCAXKXPiiSg=; b=sCTBbafactv9FjPqBF6HzGxN0Hq94sqb7rTmw0PlAsay/p5h3Tl62ps/O4Z6qaky16 nTTseR/DCPaqRUnMYwqJnlQufxgfNR2p45XWDsxAeNBQuSDfJcv+dB4xRePTwqYf0uLM acZeBruwzgnbeGzwTtF7tI9IlZGFztJzG4rlAPvgnUT2PBngpjs4w/JKHfIe5VO4kslt OlTeVlxhqg5ix3w4SJi9DtI0sAg9+g6yIwBfC3B2IyVUiSMCq9Uu8l7iS/F4OJiEI0ng JXhvTWMeN5mCP/evchlgBmfX82qRKzMTMGdRWVkTWof1cgPc/fin4n8hZDNkePjzEIKX t8dQ== 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 a65si3536233pgc.699.2017.11.02.07.31.52; Thu, 02 Nov 2017 07:31:53 -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 S933472AbdKBObu (ORCPT + 26 others); Thu, 2 Nov 2017 10:31:50 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:57932 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755512AbdKBObt (ORCPT ); Thu, 2 Nov 2017 10:31:49 -0400 Received: from wuerfel.lan ([109.193.157.232]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0MVEI1-1de8GX1WCT-00YRx4; Thu, 02 Nov 2017 15:31:40 +0100 From: Arnd Bergmann To: Greg Kroah-Hartman Cc: Arnd Bergmann , Hans de Goede , Bastien Nocera , Justin Vreeland , Himanshu Jha , Aastha Gupta , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: rtl8723bs: remove unused variables Date: Thu, 2 Nov 2017 15:31:10 +0100 Message-Id: <20171102143139.786714-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:NidjIs8ShUZFD7AkSKHcebOneT+f836NlIEu4jr3RxD8gx+qI97 zUL5nYk2Az/qHs6X8bwGganf6nyVwdZQSI9tAYl2LQC70Lb2ds6bi82UrKV2x+8kUS+P8gF NJWneIKe//3B8a8sjqrX7uXzlHny351fYwIWJoYXjh75YqDg4eXfav+rZearxDdIFj25k4L zstDvvMeHRfiVrkZq2pXA== X-UI-Out-Filterresults: notjunk:1; V01:K0:dksEjHfNIcE=:NMGxbW+hOKvPs4ZKWcijC8 nHw0F4zrtjZLWxwUitwt9CWgcN39IM3JsgIarW2GYQSvsKxEaLcgbUrqLDB0zD4ZLn7lSM3vF 5ZLeI9TyActUIIq5tVSE0VME+zRFrWEl/HYD0/Dq8DNXHVnyaNJZf+z0728SGAwfZXKQYYBhq VNzT6U+Kbekg4dl1C/G37CBM8KAhyfeLWjMHSPZq+K7gCsAi+uIabPTGO9kMYOmsc/vHJiZnx ajmiKX/WeZuUdbvpfWIT8UfEfFgSI6JkPbEW8mL1/cC92Q17Mm14CWJv/zjc64Oyj52PfysnM DT/AtDCowvDX7kGfe6/3Qa1ynIxpNA3TeJ8JLWB7mBYeP3eFQCNxziAMWIDi72Z55PX1dvP7k UaosJtpl7R1DhQDF0/B4pnff/srtvb8hJx8Q3BtD6u2M3teLCZGaKOKz4kl6vBLMANbynsBQm k42JZS+gdrBXbG2OibuOE59QMbty8EKUB3oI76GDMMMpLFLJditA2kyI9HFT2d6cYMCw8WujB wdiY+ENgn+QQBqBzE/FykOEbWXhXJWChwd7K9UGEHiI2O3TH7NPQmA8C5/MuQxNM0eW86bvQ4 BfGWRFAzj4Khkw62CUkZMQeyyliO0bCQdGC5bRdpWWZgKe0Bn7Mv/I/TzB0zghE/H9W9Chs1h RiGDQuGQZ5h25Xze8SUSKlSUYV25ASsnkqXu2Gp3FTV3kNVr9rV7mk9D0NU9aRP+5J7DZ+slT T4qhlzqD5v84lVHGoNyQSMnRsLeKDriEQJSvIw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A cleanup patch removed the only user of two local variables: drivers/staging/rtl8723bs/hal/hal_btcoex.c: In function 'hal_btcoex_Initialize': drivers/staging/rtl8723bs/hal/hal_btcoex.c:1415:5: error: unused variable 'ret2' [-Werror=unused-variable] drivers/staging/rtl8723bs/hal/hal_btcoex.c:1414:5: error: unused variable 'ret1' [-Werror=unused-variable] This removes the declarations as well. Fixes: 95b3b4238581 ("staging: rtl8723bs: remove ternary operators in assignmet statments") Signed-off-by: Arnd Bergmann --- drivers/staging/rtl8723bs/hal/hal_btcoex.c | 4 ---- 1 file changed, 4 deletions(-) -- 2.9.0 diff --git a/drivers/staging/rtl8723bs/hal/hal_btcoex.c b/drivers/staging/rtl8723bs/hal/hal_btcoex.c index d374ce961bc5..7d4df5a8832e 100644 --- a/drivers/staging/rtl8723bs/hal/hal_btcoex.c +++ b/drivers/staging/rtl8723bs/hal/hal_btcoex.c @@ -1411,10 +1411,6 @@ void hal_btcoex_SetSingleAntPath(struct adapter *padapter, u8 singleAntPath) u8 hal_btcoex_Initialize(struct adapter *padapter) { - u8 ret1; - u8 ret2; - - memset(&GLBtCoexist, 0, sizeof(GLBtCoexist)); return EXhalbtcoutsrc_InitlizeVariables((void *)padapter); }