Skip to content

Commit

Permalink
rfkill: hide unused goto label
Browse files Browse the repository at this point in the history
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: 6124c53 ("rfkill: Cleanup error handling in rfkill_init()")
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
  • Loading branch information
arndb authored and jmberg-intel committed Dec 16, 2016
1 parent 38252e9 commit f6b4122
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/rfkill/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f6b4122

Please sign in to comment.