Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a65fd09a authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

Staging: xgfib: put parenthesis in the right place



In the original code the parenthesis are in the wrong position, so the
conditions are always true.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f32b8453
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -3954,8 +3954,8 @@ void XGI_GetCRT2ResInfo(unsigned short ModeNo, unsigned short ModeIdIndex,
unsigned char XGI_IsLCDDualLink(struct vb_device_info *pVBInfo)
unsigned char XGI_IsLCDDualLink(struct vb_device_info *pVBInfo)
{
{


	if ((((pVBInfo->VBInfo & SetCRT2ToLCD) | SetCRT2ToLCDA))
	if ((pVBInfo->VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) &&
			&& (pVBInfo->LCDInfo & SetLCDDualLink)) /* shampoo0129 */
			(pVBInfo->LCDInfo & SetLCDDualLink)) /* shampoo0129 */
		return 1;
		return 1;


	return 0;
	return 0;
@@ -8773,7 +8773,7 @@ unsigned short XGI_GetVCLK2Ptr(unsigned short ModeNo,


	if (pVBInfo->IF_DEF_LVDS == 0) {
	if (pVBInfo->IF_DEF_LVDS == 0) {
		CRT2Index = CRT2Index >> 6; /*  for LCD */
		CRT2Index = CRT2Index >> 6; /*  for LCD */
		if (((pVBInfo->VBInfo & SetCRT2ToLCD) | SetCRT2ToLCDA)) { /*301b*/
		if (pVBInfo->VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { /*301b*/
			if (pVBInfo->LCDResInfo != Panel1024x768)
			if (pVBInfo->LCDResInfo != Panel1024x768)
				VCLKIndex = LCDXlat2VCLK[CRT2Index];
				VCLKIndex = LCDXlat2VCLK[CRT2Index];
			else
			else