- tweak visibility of label expected_hwif_error as it's only needed for
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 11 Apr 2006 08:01:29 +0000 (08:01 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 11 Apr 2006 08:01:29 +0000 (08:01 -0000)
  CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF or CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF

miscutils/hdparm.c

index 34b02552f5932f947a52fea2f97df2cc4433ef88..d04bf56f67855b5c8fa88ce1f8b818c4ac35176e 100644 (file)
@@ -2772,8 +2772,10 @@ missing_arg_error:
                                                        p = *argv++, --argc;
                                                else
 #endif /* CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF */
+#if defined CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF || defined CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF
 expected_hwif_error:
                                                        bb_error_msg_and_die("expected hwif value"); /* "expected hwif_irq" */
+#endif /* CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF || CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF */
 #ifdef CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF
 
                                                sscanf(p, "%i", &hwif_irq);