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:
Yao Dongdong 2014-10-28 07:40:25 +00:00 committed by Eduardo Valentin
parent b835ced1fd
commit 1401586056

View file

@ -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);