mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Acked-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
c15bdfd5b9
commit
3c4396b434
1 changed files with 2 additions and 1 deletions
|
@ -279,7 +279,8 @@ static int zforce_start(struct zforce_ts *ts)
|
||||||
goto error;
|
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");
|
dev_err(&client->dev, "Unable to set config\n");
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue