Skip to contentSkip to conversation

watchdog: fix warning "defined but not used"

PATCH New Guillaume Thouvenin 1 participant 1 message Jul 30, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 watchdog: fix warning "defined but not used"

Hello,

Function wdtpci_init_one() in file wdt_pci.c generates a warning when
compiling the watchdog driver. Here is a trivial patch for 2.6.8-rc2 to remove this warning.

HTH
Guillaume

wdt_pci.c renamed from wdt_pci.c.orig +1 -1
@@ -682,8 +682,8 @@ out:
 out_misc:
 #ifdef CONFIG_WDT_501_PCI
 	misc_deregister(&temp_miscdev);
-#endif /* CONFIG_WDT_501_PCI */
 out_rbt:
+#endif /* CONFIG_WDT_501_PCI */
 	unregister_reboot_notifier(&wdtpci_notifier);
 out_irq:
 	free_irq(irq, &wdtpci_miscdev);