]> git.karo-electronics.de Git - karo-tx-linux.git/commit
power-supply: Use PTR_ERR_OR_ZERO() routine
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 4 Sep 2014 12:01:33 +0000 (17:31 +0530)
committerSebastian Reichel <sre@kernel.org>
Tue, 16 Sep 2014 09:01:36 +0000 (11:01 +0200)
commit9d2410c79b5b2dd741648de26ad52ffd2ce3dc01
tree857d401fb979d740b15faefc681d83468b128a5a
parent061f3806bbe4d8e86dddf101f75f49c38d3f1669
power-supply: Use PTR_ERR_OR_ZERO() routine

At multiple places we are doing exactly what PTR_ERR_OR_ZERO() does. And so that
routine can be reused instead of increasing lines of code here.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/power_supply_core.c