]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ipmi: fix return from atca_oem_poweroff_hook
authorAdrian Bunk <bunk@kernel.org>
Tue, 29 Apr 2008 08:01:17 +0000 (01:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:16 +0000 (08:06 -0700)
A void returning function returned the return value of another void
returning function...

Spotted by sparse.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/ipmi/ipmi_poweroff.c

index f776df788794e01d5512b662f78305f17378e207..a261bd735dfbddd724974218bc5006c3ccabd30d 100644 (file)
@@ -308,7 +308,7 @@ static void ipmi_poweroff_atca(ipmi_user_t user)
        }
 
        if (atca_oem_poweroff_hook)
-               return atca_oem_poweroff_hook(user);
+               atca_oem_poweroff_hook(user);
  out:
        return;
 }