From 0b5e33b6325a9d7e9410feda270020f17cf1507c Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Tue, 11 Feb 2014 22:40:33 -0800 Subject: hwmon: (max6650) Drop error message after memory allocation failures The core code already generates an error message. Reviewed-by: Jean Delvare Signed-off-by: Guenter Roeck --- drivers/hwmon/max6650.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'drivers/hwmon') 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); -- cgit v1.2.2