From: Jingoo Han Date: Tue, 29 Apr 2014 08:13:50 +0000 (+0900) Subject: hwmon: (vt1211) remove unnecessary OOM messages X-Git-Tag: next-20140502~66^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d60ba715cd76eb67b28bab4f2754ae964b24d5de;p=karo-tx-linux.git hwmon: (vt1211) remove unnecessary OOM messages The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han Acked-by: Jean Delvare Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/vt1211.c b/drivers/hwmon/vt1211.c index 6b2f1a42b3ff..344b22ec2553 100644 --- a/drivers/hwmon/vt1211.c +++ b/drivers/hwmon/vt1211.c @@ -1152,10 +1152,8 @@ static int vt1211_probe(struct platform_device *pdev) int i, err; data = devm_kzalloc(dev, sizeof(struct vt1211_data), GFP_KERNEL); - if (!data) { - dev_err(dev, "Out of memory\n"); + if (!data) return -ENOMEM; - } res = platform_get_resource(pdev, IORESOURCE_IO, 0); if (!devm_request_region(dev, res->start, resource_size(res),