diff options
-rw-r--r-- | drivers/thermal/int340x_thermal/int3403_thermal.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/thermal/int340x_thermal/int3403_thermal.c b/drivers/thermal/int340x_thermal/int3403_thermal.c index 6e9fb62eb817..790b8f6da731 100644 --- a/drivers/thermal/int340x_thermal/int3403_thermal.c +++ b/drivers/thermal/int340x_thermal/int3403_thermal.c | |||
@@ -293,8 +293,7 @@ static int int3403_sensor_add(struct int3403_priv *priv) | |||
293 | return 0; | 293 | return 0; |
294 | 294 | ||
295 | err_free_obj: | 295 | err_free_obj: |
296 | if (obj->tzone) | 296 | thermal_zone_device_unregister(obj->tzone); |
297 | thermal_zone_device_unregister(obj->tzone); | ||
298 | return result; | 297 | return result; |
299 | } | 298 | } |
300 | 299 | ||