From: Jingoo Han Date: Tue, 29 Apr 2014 08:10:17 +0000 (+0900) Subject: hwmon: (max1111) remove unnecessary OOM messages X-Git-Tag: next-20140502~66^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=affdef99759d7741da23e63de7d1e183a8531f23;p=karo-tx-linux.git hwmon: (max1111) 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/max1111.c b/drivers/hwmon/max1111.c index eda077de8a9f..f67d71ee8386 100644 --- a/drivers/hwmon/max1111.c +++ b/drivers/hwmon/max1111.c @@ -192,10 +192,8 @@ static int max1111_probe(struct spi_device *spi) return err; data = devm_kzalloc(&spi->dev, sizeof(struct max1111_data), GFP_KERNEL); - if (data == NULL) { - dev_err(&spi->dev, "failed to allocate memory\n"); + if (data == NULL) return -ENOMEM; - } switch (chip) { case max1110: