Commit a663e051 authored by Rustam Subkhankulov's avatar Rustam Subkhankulov Committed by Zheng Zengkai
Browse files

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: default avatarRustam Subkhankulov <subkhankulov@ispras.ru>
Fixes: 1da177e4 ("Linux-2.6.12-rc2")
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
parent e297bc3c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment