Skip to content
Commit 03ee62f0 authored by Dan Carpenter's avatar Dan Carpenter Committed by Len Brown
Browse files

thermal: spear13xx: checking for NULL instead of IS_ERR()



thermal_zone_device_register() never returns NULL, on error it returns and
ERR_PTR().

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@st.com>
Reviewed-by: default avatarVincenzo Frascino <vincenzo.frascino@st.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent de716e32
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment