msm: mdss: Correct the condition check for AD input ioctl
One of the condition checks in ad_input ioctl is to check the input mode is not MDSS_AD_CALIB_MODE. The current code missed one pair of brackets and made the check invalid. Correct the check to fix the bug. Change-Id: I82a083fe8a1bef6c57a01e20e02fdd14f8c09bde Signed-off-by: Ping Li <pingli@codeaurora.org>
This commit is contained in:
parent
e95e4f1d5c
commit
9040e63de8
1 changed files with 1 additions and 1 deletions
|
@ -4890,7 +4890,7 @@ int mdss_mdp_ad_input(struct msm_fb_data_type *mfd,
|
||||||
mutex_lock(&ad->lock);
|
mutex_lock(&ad->lock);
|
||||||
if ((!PP_AD_STATE_IS_INITCFG(ad->state) &&
|
if ((!PP_AD_STATE_IS_INITCFG(ad->state) &&
|
||||||
!PP_AD_STS_IS_DIRTY(ad->sts)) &&
|
!PP_AD_STS_IS_DIRTY(ad->sts)) &&
|
||||||
!input->mode == MDSS_AD_MODE_CALIB) {
|
(input->mode != MDSS_AD_MODE_CALIB)) {
|
||||||
pr_warn("AD not initialized or configured.\n");
|
pr_warn("AD not initialized or configured.\n");
|
||||||
ret = -EPERM;
|
ret = -EPERM;
|
||||||
goto error;
|
goto error;
|
||||||
|
|
Loading…
Add table
Reference in a new issue