Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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: