From 73b4a087ba4c0d0d52519769320fa684185c563e Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Thu, 4 Sep 2014 17:31:34 +0530 Subject: [PATCH] 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-format-patch failed