]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
hwmon: (max1111) remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Tue, 29 Apr 2014 08:10:17 +0000 (17:10 +0900)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 1 May 2014 11:09:20 +0000 (04:09 -0700)
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/max1111.c

index eda077de8a9f726dd956f48e7e909fcc6ea8f148..f67d71ee8386a4ff8a485ec8c3a03c498dd661e5 100644 (file)
@@ -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: