summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2014-09-04 17:31:35 +0530
committerSebastian Reichel <sre@kernel.org>2014-09-16 11:01:37 +0200
commit464069cae95f71ba670c7e3a90d919b18fb48d66 (patch)
treed7f57742c9af811a0bcc593697b7c9b026f37dd5 /kernel
parent73b4a087ba4c0d0d52519769320fa684185c563e (diff)
downloadop-kernel-dev-464069cae95f71ba670c7e3a90d919b18fb48d66.zip
op-kernel-dev-464069cae95f71ba670c7e3a90d919b18fb48d66.tar.gz
power-supply: Avoid unnecessary 'goto' statements
Using 'goto' statements for freeing resources on failures is a good choice as it makes code very clean, and reduces the chances of human errors. Though in most cases compiler may take care of this. But adding unnecessary 'goto' statements wouldn't make anything better. Code becomes less readable actually. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud