aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/atmel-wm97xx.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2017-01-18 11:21:24 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-01-18 11:33:08 -0800
commit5d20b927fa17d016e633857c756788516078b94e (patch)
treea2d2936f3c1fa83d9080018f31318061f80a9ccd /drivers/input/touchscreen/atmel-wm97xx.c
parentInput: ar1021_i2c - drop unnecessary call to i2c_set_clientdata (diff)
downloadlinux-dev-5d20b927fa17d016e633857c756788516078b94e.tar.xz
linux-dev-5d20b927fa17d016e633857c756788516078b94e.zip
Input: atmel-wm97xx - drop unnecessary error messages
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>
Diffstat (limited to 'drivers/input/touchscreen/atmel-wm97xx.c')
-rw-r--r--drivers/input/touchscreen/atmel-wm97xx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/input/touchscreen/atmel-wm97xx.c b/drivers/input/touchscreen/atmel-wm97xx.c
index 7ec0421c0dd8..8cf0b2be2df4 100644
--- a/drivers/input/touchscreen/atmel-wm97xx.c
+++ b/drivers/input/touchscreen/atmel-wm97xx.c
@@ -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;