浏览代码

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>
Arnd Bergmann 8 年之前
父节点
当前提交
f6b4122c93
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      net/rfkill/core.c

+ 2 - 0
net/rfkill/core.c

@@ -1347,8 +1347,10 @@ static int __init rfkill_init(void)
 
 
 	return 0;
 	return 0;
 
 
+#ifdef CONFIG_RFKILL_INPUT
 error_input:
 error_input:
 	rfkill_any_led_trigger_unregister();
 	rfkill_any_led_trigger_unregister();
+#endif
 error_led_trigger:
 error_led_trigger:
 	misc_deregister(&rfkill_miscdev);
 	misc_deregister(&rfkill_miscdev);
 error_misc:
 error_misc: