提交 3c4396b4 编写于 作者: W Wei Yongjun 提交者: Dmitry Torokhov

Input: zforce - fix error return code in zforce_start()

The error code was not set if unable to set config, so the error
condition wasn't reflected in the return value. Fix to return a
negative error code from the error handling case instead of 0.
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: NHeiko Stuebner <heiko@sntech.de>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 c15bdfd5
......@@ -279,7 +279,8 @@ static int zforce_start(struct zforce_ts *ts)
goto error;
}
if (zforce_setconfig(ts, SETCONFIG_DUALTOUCH)) {
ret = zforce_setconfig(ts, SETCONFIG_DUALTOUCH);
if (ret) {
dev_err(&client->dev, "Unable to set config\n");
goto error;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册