提交 ad03ae44 编写于 作者: G Guenter Roeck 提交者: Dmitry Torokhov

Input: eeti_ts - drop goto to return statement

Replace 'goto l; ... l: return e;' with 'return e;'
Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 5d20b927
无相关合并请求
......@@ -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 @@ static int eeti_ts_probe(struct i2c_client *client,
err1:
input_free_device(input);
kfree(priv);
err0:
return err;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部