]> git.baikalelectronics.ru Git - kernel.git/commit
video: fbdev: sis: fix typos in SiS_GetModeID()
authorRustam Subkhankulov <subkhankulov@ispras.ru>
Mon, 18 Jul 2022 12:43:43 +0000 (15:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:18:06 +0000 (11:18 +0200)
commit596777751457033d356f0d00c2db49f99dd31a0a
tree2ab64aeb50b21a0af4c96e6e35b2d40e7eaa7446
parent87184cabc239b85c8c6d8b90316f9da1db3bf825
video: fbdev: sis: fix typos in SiS_GetModeID()

[ Upstream commit ccb636e9981708fffd709b97841bfa031936e764 ]

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: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/sis/init.c