Skip to content

Commit

Permalink
Thermal:Remove usless if(!result) before return tz
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yao Dongdong authored and Eduardo Valentin committed Nov 3, 2014
1 parent b835ced commit 1401586
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/thermal/thermal_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1401586

Please sign in to comment.