Explorar o código

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>
Yao Dongdong %!s(int64=10) %!d(string=hai) anos
pai
achega
1401586056
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      drivers/thermal/thermal_core.c

+ 1 - 2
drivers/thermal/thermal_core.c

@@ -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);