From: Jingoo Han Date: Tue, 29 Apr 2014 08:12:25 +0000 (+0900) Subject: hwmon: (s3c-hwmon) remove unnecessary OOM messages X-Git-Tag: next-20140502~66^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=04d6bcd726520228e9d9d92b6c1fbc3f10948be1;p=karo-tx-linux.git hwmon: (s3c-hwmon) 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/s3c-hwmon.c b/drivers/hwmon/s3c-hwmon.c index 73bd64e8c30a..0674c13bbd4b 100644 --- a/drivers/hwmon/s3c-hwmon.c +++ b/drivers/hwmon/s3c-hwmon.c @@ -285,10 +285,8 @@ static int s3c_hwmon_probe(struct platform_device *dev) } hwmon = devm_kzalloc(&dev->dev, sizeof(struct s3c_hwmon), GFP_KERNEL); - if (hwmon == NULL) { - dev_err(&dev->dev, "no memory\n"); + if (hwmon == NULL) return -ENOMEM; - } platform_set_drvdata(dev, hwmon);