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)
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>

No differences found