提交 0b5e33b6 编写于 作者: G Guenter Roeck

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

The core code already generates an error message.
Reviewed-by: NJean Delvare <jdelvare@suse.de>
Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册