]> git.karo-electronics.de Git - linux-beck.git/commit
thermal: ti-soc-thermal: clean up the error handling a bit
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 2 Mar 2016 10:00:55 +0000 (13:00 +0300)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 8 Mar 2016 19:57:37 +0000 (11:57 -0800)
commit13369194256a95c5fd63472b0f5abcfd58a284c1
tree9d68d727a49dc7225af6013d925fa8c1400c1767
parent8255e4e2376189c497cb722fd6aea36b540f7125
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>
drivers/thermal/ti-soc-thermal/ti-bandgap.c