Message ID | 85f42edb-7ce5-cf23-80f5-48440a14cd94@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/input/serio/at32psif.c b/drivers/input/serio/at32psif.c index 2e4ff5b..fcb769a 100644 --- a/drivers/input/serio/at32psif.c +++ b/drivers/input/serio/at32psif.c @@ -212,8 +212,7 @@ static int __init psif_probe(struct platform_device *pdev) psif = kzalloc(sizeof(struct psif), GFP_KERNEL); if (!psif) { dev_dbg(&pdev->dev, "out of memory\n"); - ret = -ENOMEM; - goto out; + return -ENOMEM; } psif->pdev = pdev; @@ -297,7 +296,6 @@ out_free_io: kfree(io); out_free_psif: kfree(psif); -out: return ret; }