Commit 0b5e33b6 authored by Guenter Roeck's avatar Guenter Roeck

hwmon: (max6650) Drop error message after memory allocation failures

The core code already generates an error message.
Reviewed-by: default avatarJean Delvare <jdelvare@suse.de>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 17eaa25c
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment