]> git.karo-electronics.de Git - linux-beck.git/commit
staging/xgifb: Fix always false condition in vb_setmode.c (smatch)
authorPeter Huewe <peterhuewe@gmx.de>
Mon, 13 May 2013 21:41:49 +0000 (23:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 23:02:35 +0000 (16:02 -0700)
commit85b38476fde05b4337115f0e830667e7156c6e2e
tree7430c24ce5948b2c166c63cccbad75ac42c1fd44
parent986eb9fad5da8bc498eb9d15d61efae4c4c407c1
staging/xgifb: Fix always false condition in vb_setmode.c (smatch)

Smatch complains:
drivers/staging/xgifb/vb_setmode.c:3181
XGI_SetLockRegs() warn: bitwise AND condition is false here

Since SetNTSCTV is defined as 0 in drivers/video/sis/initdef.h this is
correct.
-> Change the condition to == to fix this.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/vb_setmode.c