Input: eeti_ts - drop goto to return statement
authorGuenter Roeck <linux@roeck-us.net>
Wed, 18 Jan 2017 19:24:06 +0000 (11:24 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 18 Jan 2017 19:33:10 +0000 (11:33 -0800)
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>
drivers/input/touchscreen/eeti_ts.c

index 09be6ced71515031eae17db5b54c07108953cbd8..fa974579eb41c8ae27fa5fb6e8812caf50969392 100644 (file)
@@ -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;
 }