diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-12-16 03:44:08 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2016-12-16 04:05:39 -0500 |
commit | f6b4122c93f43c3f7b5787ca20fa3ac458f50d05 (patch) | |
tree | 034a7f355d5d227e4d1dee964eb1042ce06ebbc1 /net/rfkill | |
parent | 38252e9ef68936f104a5791740f4ca2f81510a33 (diff) |
rfkill: hide unused goto label
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 <arnd@arndb.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/rfkill')
-rw-r--r-- | net/rfkill/core.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
1347 | 1347 | ||
1348 | return 0; | 1348 | return 0; |
1349 | 1349 | ||
1350 | #ifdef CONFIG_RFKILL_INPUT | ||
1350 | error_input: | 1351 | error_input: |
1351 | rfkill_any_led_trigger_unregister(); | 1352 | rfkill_any_led_trigger_unregister(); |
1353 | #endif | ||
1352 | error_led_trigger: | 1354 | error_led_trigger: |
1353 | misc_deregister(&rfkill_miscdev); | 1355 | misc_deregister(&rfkill_miscdev); |
1354 | error_misc: | 1356 | error_misc: |