From patchwork Thu Nov 2 14:31:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 117822 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2244458qgn; Thu, 2 Nov 2017 07:32:43 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SwU1wk9eq/0a6ItbBrPh8VTYqF5KUYsQr25Mk8sllUOrwNUwdD43hqrLb2dmCNDc1KNRtm X-Received: by 10.159.203.133 with SMTP id ay5mr2674996plb.361.1509633163446; Thu, 02 Nov 2017 07:32:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509633163; cv=none; d=google.com; s=arc-20160816; b=ZXsUHdiQ7Kv6h5hSjTF1k1x1K6ahH4StnRqrCpn5IYRRelQHxrnA5Ec2vIyFSBaDXf mYe1xXwXW3O59mCHztDSf9p5xUutGd7BdnK/tfJuFbanF4UsShheildOYKxO6QXmXC5k p1mF4+UablWJ3WKhgbFnCX/r5B6RcmGdtZSJgr6lju/RfN1hO3qcAx3aD0/Z52igl7Iz 6cjDqxgaaYbpbIzgILmhxHfgm+Sf0YCMMtvuAUDtdGxnJJ1zlJrxs7jSOODWXFRQWark pt7J92aEwTWn1vIQJoDWdUpOJ9vUGlufNJjchsX6dg/4ppXIgjg9rNmLrFDBywBIoyI8 HIWw== 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=rmZ3TmgnSmE/UEdJue0tWkBXJB2yVWB66hKaKSy5Ebo=; b=zU8qZtZ6kcpCiDNYCywsChswK32LX4Gw9KXR9nlHDlOFzLnNPr0wGFxHLZ94LGKR5r WhmEBJfrJWH6dplbu4YoNiyb5paIOqUl7xG5/3r2ZRfSBypxeG2EAAr5S8dfGZlTvQbO EksedZdUhwYe+dezCPnm4PBkGwzQMrSNuSkQ+8CsXlsGVcmamnNJUPFap482QR+IYylI MPrSc820azLQGm1GzfDTnh/ckk1e4Ba9s0PCBjpk/Qf0AspBZjayUwYgDYcDvWaTBoA5 w6VeYvEzI2Clrk6O8OT0/A3KRSC5+LwiDXiS5tV4q7JAYZFWrxO+Yt/ckPW6JSi05k95 kqjA== 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.32.43; Thu, 02 Nov 2017 07:32:43 -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 S933507AbdKBOcl (ORCPT + 26 others); Thu, 2 Nov 2017 10:32:41 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:56889 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932999AbdKBOck (ORCPT ); Thu, 2 Nov 2017 10:32:40 -0400 Received: from wuerfel.lan ([109.193.157.232]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0MEsqA-1duIEA0JWk-00FxQm; Thu, 02 Nov 2017 15:32:28 +0100 From: Arnd Bergmann To: Greg Kroah-Hartman , Larry Finger , Kalle Valo Cc: Arnd Bergmann , Ping-Ke Shih , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: rtlwifi: remove an unused variable Date: Thu, 2 Nov 2017 15:31:59 +0100 Message-Id: <20171102143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tuF8/tZbuZNdBxijDUCYYDmDEuIyVg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The timer conversion patch left a variable behind, and this escaped the build testing: drivers/staging/rtlwifi/base.c: In function 'rtl_watch_dog_timer_callback': drivers/staging/rtlwifi/base.c:2167:23: error: unused variable 'hw' [-Werror=unused-variable] This removes the stale variable as well. Fixes: f8af6a323368 ("staging: rtlwifi: Convert timers to use timer_setup()") Signed-off-by: Arnd Bergmann --- drivers/staging/rtlwifi/base.c | 1 - 1 file changed, 1 deletion(-) -- 2.9.0 Acked-by: Kees Cook diff --git a/drivers/staging/rtlwifi/base.c b/drivers/staging/rtlwifi/base.c index 2c693c7aa9d5..c947def37d31 100644 --- a/drivers/staging/rtlwifi/base.c +++ b/drivers/staging/rtlwifi/base.c @@ -2164,7 +2164,6 @@ void rtl_watchdog_wq_callback(void *data) void rtl_watch_dog_timer_callback(struct timer_list *t) { struct rtl_priv *rtlpriv = from_timer(rtlpriv, t, works.watchdog_timer); - struct ieee80211_hw *hw = rtlpriv->hw; queue_delayed_work(rtlpriv->works.rtl_wq, &rtlpriv->works.watchdog_wq, 0);