diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-03-02 13:00:55 +0300 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2016-03-08 11:57:37 -0800 |
commit | 13369194256a95c5fd63472b0f5abcfd58a284c1 (patch) | |
tree | 9d68d727a49dc7225af6013d925fa8c1400c1767 /fs/nls | |
parent | 8255e4e2376189c497cb722fd6aea36b540f7125 (diff) | |
download | linux-13369194256a95c5fd63472b0f5abcfd58a284c1.tar.bz2 |
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>
Diffstat (limited to 'fs/nls')
0 files changed, 0 insertions, 0 deletions