提交 14015860 编写于 作者: Y Yao Dongdong 提交者: Eduardo Valentin

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

result is always zero when comes here.
Signed-off-by: NYao Dongdong <yaodongdong@huawei.com>
Acked-by: NEduardo Valentin <edubezval@gmail.com>
Signed-off-by: NEduardo Valentin <edubezval@gmail.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册