From: Viresh Kumar Date: Thu, 4 Sep 2014 12:01:34 +0000 (+0530) Subject: power-supply: Check for failures only when we can fail X-Git-Tag: fixes-against-v3.18-rc2~70^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73b4a087ba4c0d0d52519769320fa684185c563e;p=pandora-kernel.git power-supply: Check for failures only when we can fail In power_supply_show_property() routine, we call ->get_property() conditionally and should check for failure in that case only. There is no point comparing 'ret' for errors when 'ret' is surely zero. Signed-off-by: Viresh Kumar Signed-off-by: Sebastian Reichel --- Reading git-diff-tree failed