aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/adm1021.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/adm1021.c')
-rw-r--r--drivers/hwmon/adm1021.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/hwmon/adm1021.c b/drivers/hwmon/adm1021.c
index 2a341390d92e..da3e2c9f705f 100644
--- a/drivers/hwmon/adm1021.c
+++ b/drivers/hwmon/adm1021.c
@@ -328,10 +328,8 @@ static int adm1021_detach_client(struct i2c_client *client)
328 328
329 hwmon_device_unregister(data->class_dev); 329 hwmon_device_unregister(data->class_dev);
330 330
331 if ((err = i2c_detach_client(client))) { 331 if ((err = i2c_detach_client(client)))
332 dev_err(&client->dev, "Client deregistration failed, client not detached.\n");
333 return err; 332 return err;
334 }
335 333
336 kfree(data); 334 kfree(data);
337 return 0; 335 return 0;