video: fbdev: sis: fix typos in SiS_GetModeID()
stable inclusion from stable-v5.10.137 commit ca326aff6bf3a2944ac840c1eeb01a42918a0bed category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I60PLB Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ca326aff6bf3a2944ac840c1eeb01a42918a0bed -------------------------------- [ Upstream commit 3eb8fccc ] The second operand of a '&&' operator has no impact on expression result for cases 400 and 512 in SiS_GetModeID(). Judging by the logic and the names of the variables, in both cases a typo was made. Found by Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by:Rustam Subkhankulov <subkhankulov@ispras.ru> Fixes: 1da177e4 ("Linux-2.6.12-rc2") Signed-off-by:
Helge Deller <deller@gmx.de> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com> Reviewed-by:
Wei Li <liwei391@huawei.com>
Loading
Please sign in to comment