[linux-3.16-rc1/drivers/staging/xgifb/vb_setmode.c:3732] -> [linux-3.16-rc1/drivers/staging/xgifb/vb_setmode.c:3734]: (style) Mismatching assignment and comparison, comparison 'tempah==34' is always false. [linux-3.16-rc1/drivers/staging/xgifb/vb_setmode.c:3732] -> [linux-3.16-rc1/drivers/staging/xgifb/vb_setmode.c:3738]: (style) Mismatching assignment and comparison, comparison 'tempah==35' is always false. Source code is tempah &= PanelResInfo; if ((tempah == Panel_1024x768) || (tempah == Panel_1024x768x75)) { tempbx = 1024; tempcx = 768; } else if ((tempah == Panel_1280x1024) || (tempah == Panel_1280x1024x75)) { but #define PanelResInfo 0x1F /* CR36 Panel Type/LCDResInfo */ #define Panel_1024x768x75 0x22 #define Panel_1280x1024x75 0x23 Something that's been ANDed with 0x1F can only have a maximum value of 31, so can never be equal to 34 or 35. Suggest code rework.
Still broken over a month later.