summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/eeti_ts.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2017-01-18 22:24:06 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-01-18 22:33:10 +0300
commitad03ae44baeb82b28024c8c582e18146b96d637e (patch)
tree7e110ec5ea93e025baccc0df531f4ab35b8cc6cf /drivers/input/touchscreen/eeti_ts.c
parent5d20b927fa17d016e633857c756788516078b94e (diff)
downloadlinux-ad03ae44baeb82b28024c8c582e18146b96d637e.tar.xz
Input: eeti_ts - drop goto to return statement
Replace 'goto l; ... l: return e;' with 'return e;' Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/eeti_ts.c')
-rw-r--r--drivers/input/touchscreen/eeti_ts.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/input/touchscreen/eeti_ts.c b/drivers/input/touchscreen/eeti_ts.c
index 09be6ced7151..fa974579eb41 100644
--- a/drivers/input/touchscreen/eeti_ts.c
+++ b/drivers/input/touchscreen/eeti_ts.c
@@ -173,12 +173,11 @@ static int eeti_ts_probe(struct i2c_client *client,
priv = kzalloc(sizeof(*priv), GFP_KERNEL);
if (!priv) {
dev_err(&client->dev, "failed to allocate driver data\n");
- goto err0;
+ return -ENOMEM;
}
mutex_init(&priv->mutex);
input = input_allocate_device();
-
if (!input) {
dev_err(&client->dev, "Failed to allocate input device.\n");
goto err1;
@@ -243,7 +242,6 @@ err2:
err1:
input_free_device(input);
kfree(priv);
-err0:
return err;
}