mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-18 19:05:39 +00:00
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>
This commit is contained in:
parent
17eaa25c3e
commit
0b5e33b632
@ -656,10 +656,8 @@ static int max6650_probe(struct i2c_client *client,
|
|||||||
|
|
||||||
data = devm_kzalloc(&client->dev, sizeof(struct max6650_data),
|
data = devm_kzalloc(&client->dev, sizeof(struct max6650_data),
|
||||||
GFP_KERNEL);
|
GFP_KERNEL);
|
||||||
if (!data) {
|
if (!data)
|
||||||
dev_err(&client->dev, "out of memory.\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
data->client = client;
|
data->client = client;
|
||||||
mutex_init(&data->update_lock);
|
mutex_init(&data->update_lock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user