Message ID | ee3d6628-e8a4-c6c5-c66b-597fb2b28a47@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/input/serio/apbps2.c b/drivers/input/serio/apbps2.c index 45d4e08ca4f8..9b75c4e1bc13 100644 --- a/drivers/input/serio/apbps2.c +++ b/drivers/input/serio/apbps2.c @@ -140,10 +140,8 @@ static int apbps2_of_probe(struct platform_device *ofdev) struct resource *res; priv = devm_kzalloc(&ofdev->dev, sizeof(*priv), GFP_KERNEL); - if (!priv) { - dev_err(&ofdev->dev, "memory allocation failed\n"); + if (!priv) return -ENOMEM; - } /* Find Device Address */ res = platform_get_resource(ofdev, IORESOURCE_MEM, 0);