Input: atmel-wm97xx - drop unnecessary error messages
authorGuenter Roeck <linux@roeck-us.net>
Wed, 18 Jan 2017 19:21:24 +0000 (11:21 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 18 Jan 2017 19:33:08 +0000 (11:33 -0800)
Error messages after memory allocation failures are unnecessary and
can be dropped, especially give that they were emitted as dev_dbg() so
noone except person actively debugging the driver would see them.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel-wm97xx.c

index 7ec0421..8cf0b2b 100644 (file)
@@ -339,10 +339,8 @@ static int __init atmel_wm97xx_probe(struct platform_device *pdev)
        int ret;
 
        atmel_wm97xx = kzalloc(sizeof(struct atmel_wm97xx), GFP_KERNEL);
-       if (!atmel_wm97xx) {
-               dev_dbg(&pdev->dev, "out of memory\n");
+       if (!atmel_wm97xx)
                return -ENOMEM;
-       }
 
        atmel_wm97xx->wm        = wm;
        atmel_wm97xx->regs      = (void *)ATMEL_WM97XX_AC97C_IOMEM;