summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/max6650.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/max6650.c')
-rw-r--r--drivers/hwmon/max6650.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/hwmon/max6650.c b/drivers/hwmon/max6650.c
index badff94edef8..74916e777264 100644
--- a/drivers/hwmon/max6650.c
+++ b/drivers/hwmon/max6650.c
@@ -656,10 +656,8 @@ static int max6650_probe(struct i2c_client *client,
data = devm_kzalloc(&client->dev, sizeof(struct max6650_data),
GFP_KERNEL);
- if (!data) {
- dev_err(&client->dev, "out of memory.\n");
+ if (!data)
return -ENOMEM;
- }
data->client = client;
mutex_init(&data->update_lock);