commit | 9d2410c79b5b2dd741648de26ad52ffd2ce3dc01 | [log] [tgz] |
---|---|---|
author | Viresh Kumar <viresh.kumar@linaro.org> | Thu Sep 04 17:31:33 2014 +0530 |
committer | Sebastian Reichel <sre@kernel.org> | Tue Sep 16 11:01:36 2014 +0200 |
tree | 857d401fb979d740b15faefc681d83468b128a5a | |
parent | 061f3806bbe4d8e86dddf101f75f49c38d3f1669 [diff] |
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>