From patchwork Fri Dec 16 08:44:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101416 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp1279843qgi; Fri, 16 Dec 2016 00:44:56 -0800 (PST) X-Received: by 10.84.143.1 with SMTP id 1mr4441946ply.86.1481877895937; Fri, 16 Dec 2016 00:44:55 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w188si6704531pfb.261.2016.12.16.00.44.55; Fri, 16 Dec 2016 00:44:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of netdev-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 netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755568AbcLPIov (ORCPT + 5 others); Fri, 16 Dec 2016 03:44:51 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:54677 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756882AbcLPIop (ORCPT ); Fri, 16 Dec 2016 03:44:45 -0500 Received: from wuerfel.lan ([78.43.21.235]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0Ma2zH-1c2kTr3sZL-00LoY6; Fri, 16 Dec 2016 09:44:29 +0100 From: Arnd Bergmann To: Johannes Berg Cc: Arnd Bergmann , "David S. Miller" , =?utf-8?q?Jo=C3=A3o_Paulo_Rec?= =?utf-8?q?hi_Vita?= , =?utf-8?b?TWljaGHFgiBLxJlwaWXFhA==?= , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH mac80211-next] rfkill: hide unused goto label Date: Fri, 16 Dec 2016 09:44:08 +0100 Message-Id: <20161216084425.1692828-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:B5N38/jNpX5HpRctcsJwYC4rFz6lTuxu65wCW/65PReB2gynpIW FJnIDajwenqmNNt/PAeqY14UZbI79A8Jv8VNfo4MaxmxktTj3ybHdiXNs/zb/Vmnw3TaG0E 4mNeQrU08KyIUVewJnw4TIpWtrqDkyy5JzCRDYsJaCtvNLt1FofypaQADmqnDC0IpfzVSgJ z1qTzZ5VSxyiLI1kmwmZQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:KkKJbd+uvig=:NbMass1e0sGgXQyr7jqtkL ZDRaMwtERtTADDudxFbnEiEEEhSkTHcQnwHurkYepCGWq1FsgpjczzZM2EMz2RK238XiuOpGu lzVNv9Fgnq1oRgcJEBhil2n44PJ6JKLATOPi2KV5araFpgu4xVjofcX4GvYWRsHOE8X+a39n+ HoWOJ28RsVjCBAsS/ZBihs6uaz+i5f6RpZCILQUpslwvMJSCZ5ABSAs+tZjYva6fmX93tmlWp FZuGtPM8uCrK2GlkfQ9p6r40e3rxpPK76qxXg4AaqB/Bs+g+qV6HUlXxAdAXpr1fndSyxPu7A HhA+B6en0tsKhDPUoR9wOFq/lB0Ud85ffP683Jx+qXg6583jGyDOS3yu4Kcw/Kl/0mEorG6X8 MUqZ0c1/dQWoSlVylH4mu3ErZc6nNvvLyaUhK5iGLjHmWamskUdT+xQusI5H6m88xggKK/2eR diWy1r+k14jxfgSqwnoYOpb6El7nNk2yzVdQQ82TNrXeRGejTu/bBqQw/ct9v/9dDszqK3fTx xM2EvY3rwQCcGs4wr8D6zHfDmWNKqjvMWlOwqL3I6KUv4SsUiyal4th9CaftRj/gQJTAeo/Wb 2wNKy6znmUQRC9yl1pHU38ciivU4QJPnjZALwT/W3LFSJ7grOUSJ+zUklud91coFmkkUhv8jq MKgIpcm2irAZ17BWh4uRoRIF+E5oRr/IslFkGboMmu49omLHsLxx9g0l15UIA6dVhGT0= Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org A cleanup introduced a harmless warning in some configurations: net/rfkill/core.c: In function 'rfkill_init': net/rfkill/core.c:1350:1: warning: label 'error_input' defined but not used [-Wunused-label] This adds another #ifdef around the label to match that around the caller. Fixes: 6124c53edeea ("rfkill: Cleanup error handling in rfkill_init()") Signed-off-by: Arnd Bergmann --- net/rfkill/core.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.9.0 diff --git a/net/rfkill/core.c b/net/rfkill/core.c index f6b01f3616e5..b7adaee69756 100644 --- a/net/rfkill/core.c +++ b/net/rfkill/core.c @@ -1347,8 +1347,10 @@ static int __init rfkill_init(void) return 0; +#ifdef CONFIG_RFKILL_INPUT error_input: rfkill_any_led_trigger_unregister(); +#endif error_led_trigger: misc_deregister(&rfkill_miscdev); error_misc: