Skip to content
Commit 13369194 authored by Dan Carpenter's avatar Dan Carpenter Committed by Eduardo Valentin
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent 8255e4e2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment