Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);