commit | 13369194256a95c5fd63472b0f5abcfd58a284c1 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Wed Mar 02 13:00:55 2016 +0300 |
committer | Eduardo Valentin <edubezval@gmail.com> | Tue Mar 08 11:57:37 2016 -0800 |
tree | 9d68d727a49dc7225af6013d925fa8c1400c1767 | |
parent | 8255e4e2376189c497cb722fd6aea36b540f7125 [diff] |
thermal: ti-soc-thermal: clean up the error handling a bit We don't need to initialize "ret". We can move the IS_ERR() checks into the if condition instead of doing an assignment first. Also there is a check for "ret" when we know it is zero so we can remove that. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>