Skip to contentSkip to conversation

IPMI: fix return from atca_oem_poweroff_hook

PATCH In review Corey Minyard 1 participant 1 message Apr 21, 2008 IPMI

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 IPMI: fix return from atca_oem_poweroff_hook

A void returning function returned the return value of another void returning function...

Spotted by sparse.

drivers/char/ipmi/ipmi_poweroff.c +1 -1
Index: 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;
 }