Thermal:Remove usless if(!result) before return tz
result is always zero when comes here. Signed-off-by: Yao Dongdong <yaodongdong@huawei.com> Acked-by: Eduardo Valentin <edubezval@gmail.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
This commit is contained in:
parent
b835ced1fd
commit
1401586056
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue