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:
Родитель
b835ced1fd
Коммит
1401586056
|
@ -1575,7 +1575,6 @@ struct thermal_zone_device *thermal_zone_device_register(const char *type,
|
|||
|
||||
thermal_zone_device_update(tz);
|
||||
|
||||
if (!result)
|
||||
return tz;
|
||||
|
||||
unregister:
|
||||
|
|
Загрузка…
Ссылка в новой задаче