aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorViresh Kumar <[email protected]>2014-09-04 17:31:34 +0530
committerSebastian Reichel <[email protected]>2014-09-16 11:01:37 +0200
commit73b4a087ba4c0d0d52519769320fa684185c563e (patch)
tree6d691c88248949913297077e71580460c0bc1f90 /net/lapb/lapb_subr.c
parent9d2410c79b5b2dd741648de26ad52ffd2ce3dc01 (diff)
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 <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions