Commit 14015860 authored by Yao Dongdong's avatar Yao Dongdong Committed by Eduardo Valentin

Thermal:Remove usless if(!result) before return tz

result is always zero when comes here.
Signed-off-by: default avatarYao Dongdong <yaodongdong@huawei.com>
Acked-by: default avatarEduardo Valentin <edubezval@gmail.com>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent b835ced1
......@@ -1575,8 +1575,7 @@ struct thermal_zone_device *thermal_zone_device_register(const char *type,
thermal_zone_device_update(tz);
if (!result)
return tz;
return tz;
unregister:
release_idr(&thermal_tz_idr, &thermal_idr_lock, tz->id);
......
Markdown is supported
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