commit | 464069cae95f71ba670c7e3a90d919b18fb48d66 | [log] [tgz] |
---|---|---|
author | Viresh Kumar <viresh.kumar@linaro.org> | Thu Sep 04 17:31:35 2014 +0530 |
committer | Sebastian Reichel <sre@kernel.org> | Tue Sep 16 11:01:37 2014 +0200 |
tree | d7f57742c9af811a0bcc593697b7c9b026f37dd5 | |
parent | 73b4a087ba4c0d0d52519769320fa684185c563e [diff] |
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>