summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/max6650.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2014-02-12 07:40:33 +0100
committerGuenter Roeck <linux@roeck-us.net>2014-03-03 17:01:05 +0100
commit0b5e33b6325a9d7e9410feda270020f17cf1507c (patch)
treef1c18233814d65e48f618bd2b4035795a5a30038 /drivers/hwmon/max6650.c
parenthwmon: (max6650) Convert to use devm_hwmon_device_register_with_groups (diff)
downloadlinux-0b5e33b6325a9d7e9410feda270020f17cf1507c.tar.xz
linux-0b5e33b6325a9d7e9410feda270020f17cf1507c.zip
hwmon: (max6650) Drop error message after memory allocation failures
The core code already generates an error message. Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
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);