power/reset: xgene: Return -ENOMEM if out of memory
authorGuenter Roeck <linux@roeck-us.net>
Tue, 30 Sep 2014 17:48:28 +0000 (10:48 -0700)
committerSebastian Reichel <sre@kernel.org>
Mon, 17 Nov 2014 02:07:09 +0000 (03:07 +0100)
commitef288f9f656cdf46cb7788b6bb18da1c3b722feb
treedf4ae56b7a2b2f33cec64198359a8bad76a5a390
parent46c99ac66222aed719f26835eae4946d72880cbe
power/reset: xgene: Return -ENOMEM if out of memory

It is customary to return an error code of -ENOMEM if the system
is out of memory. Also, in that case, the infrastructure will report
an error, so it is unnecessary to report it again.

Cc: Loc Ho <lho@apm.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/power/reset/xgene-reboot.c