diff options
author | Guenter Roeck <linux@roeck-us.net> | 2014-02-11 22:40:33 -0800 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2014-03-03 08:01:05 -0800 |
commit | 0b5e33b6325a9d7e9410feda270020f17cf1507c (patch) | |
tree | f1c18233814d65e48f618bd2b4035795a5a30038 /drivers/hwmon/max6650.c | |
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/max6650.c')
-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, 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); |