Skip to content

Commit 1401586

Browse files
Yao DongdongEduardo Valentin
authored andcommitted
Thermal:Remove usless if(!result) before return tz
result is always zero when comes here. Signed-off-by: Yao Dongdong <[email protected]> Acked-by: Eduardo Valentin <[email protected]> Signed-off-by: Eduardo Valentin <[email protected]>
1 parent b835ced commit 1401586

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/thermal/thermal_core.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,8 +1575,7 @@ struct thermal_zone_device *thermal_zone_device_register(const char *type,
15751575

15761576
thermal_zone_device_update(tz);
15771577

1578-
if (!result)
1579-
return tz;
1578+
return tz;
15801579

15811580
unregister:
15821581
release_idr(&thermal_tz_idr, &thermal_idr_lock, tz->id);

0 commit comments

Comments
 (0)