diff options
author | Guenter Roeck <linux@roeck-us.net> | 2014-02-12 01:40:33 -0500 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2014-03-03 11:01:05 -0500 |
commit | 0b5e33b6325a9d7e9410feda270020f17cf1507c (patch) | |
tree | f1c18233814d65e48f618bd2b4035795a5a30038 /drivers/hwmon | |
parent | 17eaa25c3e39bbd09ec9a032f0e058f34ba70ed2 (diff) |
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')
-rw-r--r-- | drivers/hwmon/max6650.c | 4 |
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, | |||
656 | 656 | ||
657 | data = devm_kzalloc(&client->dev, sizeof(struct max6650_data), | 657 | data = devm_kzalloc(&client->dev, sizeof(struct max6650_data), |
658 | GFP_KERNEL); | 658 | GFP_KERNEL); |
659 | if (!data) { | 659 | if (!data) |
660 | dev_err(&client->dev, "out of memory.\n"); | ||
661 | return -ENOMEM; | 660 | return -ENOMEM; |
662 | } | ||
663 | 661 | ||
664 | data->client = client; | 662 | data->client = client; |
665 | mutex_init(&data->update_lock); | 663 | mutex_init(&data->update_lock); |