Commit ef82710a authored by Roland Dreier's avatar Roland Dreier Committed by Wim Van Sebroeck

[WATCHDOG] Fix return value warning in hpwdt

The return value of smbios_scan_machine() is never used, and when it
succeeds it doesn't return anything, so just make it void.  This fixes:

    drivers/watchdog/hpwdt.c: In function 'smbios_scan_machine':
    drivers/watchdog/hpwdt.c:562: warning: control reaches end of non-void function
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
Acked-by: default avatarThomas Mingarelli <Thomas.Mingarelli@hp.com>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 103018ac
...@@ -528,20 +528,19 @@ static int __devinit smbios_present(const char __iomem *p) ...@@ -528,20 +528,19 @@ static int __devinit smbios_present(const char __iomem *p)
return -ENODEV; return -ENODEV;
} }
static int __devinit smbios_scan_machine(void) static void __devinit smbios_scan_machine(void)
{ {
char __iomem *p, *q; char __iomem *p, *q;
int rc;
if (efi_enabled) { if (efi_enabled) {
if (efi.smbios == EFI_INVALID_TABLE_ADDR) if (efi.smbios == EFI_INVALID_TABLE_ADDR)
return -ENODEV; return;
p = ioremap(efi.smbios, 32); p = ioremap(efi.smbios, 32);
if (p == NULL) if (p == NULL)
return -ENOMEM; return;
rc = smbios_present(p); smbios_present(p);
iounmap(p); iounmap(p);
} else { } else {
/* /*
...@@ -549,14 +548,12 @@ static int __devinit smbios_scan_machine(void) ...@@ -549,14 +548,12 @@ static int __devinit smbios_scan_machine(void)
*/ */
p = ioremap(PCI_ROM_BASE1, ROM_SIZE); p = ioremap(PCI_ROM_BASE1, ROM_SIZE);
if (p == NULL) if (p == NULL)
return -ENOMEM; return;
for (q = p; q < p + ROM_SIZE; q += 16) { for (q = p; q < p + ROM_SIZE; q += 16)
rc = smbios_present(q); if (!smbios_present(q))
if (!rc) {
break; break;
}
}
iounmap(p); iounmap(p);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment