summaryrefslogtreecommitdiff
path: root/drivers/input/keyboard/opencores-kbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/keyboard/opencores-kbd.c')
-rw-r--r--drivers/input/keyboard/opencores-kbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/opencores-kbd.c b/drivers/input/keyboard/opencores-kbd.c
index 62abe2c16670..f8502bb29176 100644
--- a/drivers/input/keyboard/opencores-kbd.c
+++ b/drivers/input/keyboard/opencores-kbd.c
@@ -70,7 +70,7 @@ static int opencores_kbd_probe(struct platform_device *pdev)
opencores_kbd->addr = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(opencores_kbd->addr))
- error = PTR_ERR(opencores_kbd->addr);
+ return PTR_ERR(opencores_kbd->addr);
input->name = pdev->name;
input->phys = "opencores-kbd/input0";