All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/3] IPMI: fix return from atca_oem_poweroff_hook
@ 2008-04-21 19:36 Corey Minyard
  0 siblings, 0 replies; only message in thread
From: Corey Minyard @ 2008-04-21 19:36 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux Kernel, Adrian Bunk, OpenIPMI Developers

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>

Index: linux-2.6.24/drivers/char/ipmi/ipmi_poweroff.c
===================================================================
--- linux-2.6.24.orig/drivers/char/ipmi/ipmi_poweroff.c
+++ linux-2.6.24/drivers/char/ipmi/ipmi_poweroff.c
@@ -308,7 +308,7 @@ static void ipmi_poweroff_atca(ipmi_user
 	}
 
 	if (atca_oem_poweroff_hook)
-		return atca_oem_poweroff_hook(user);
+		atca_oem_poweroff_hook(user);
  out:
 	return;
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-21 19:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-21 19:36 [PATCH 3/3] IPMI: fix return from atca_oem_poweroff_hook Corey Minyard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.