staging:xgifb:vb_setmode.c No space after cast
PATCH 7/20 staging:xgifb:vb_setmode.c No space after cast
Make suggested modification from checkpatch in reference to CHECK: No space is necessary after a cast
Signed-off-by Walt Feasel <[email protected]>
--- drivers/staging/xgifb/vb_setmode.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
drivers/staging/xgifb/vb_setmode.c +9 -9
@@ -2463,16 +2463,16 @@ static void XGI_GetRAMDAC2DATA(unsigned short ModeIdIndex, modeflag = XGI330_EModeIDTable[ModeIdIndex].Ext_ModeFlag; CRT1Index = XGI330_RefIndex[RefreshRateTableIndex].Ext_CRT1CRTC; CRT1Index &= IndexMask; - temp1 = (unsigned short ) XGI_CRT1Table[CRT1Index].CR[0 ]; - temp2 = (unsigned short ) XGI_CRT1Table[CRT1Index].CR[5 ]; + temp1 = (unsigned short )XGI_CRT1Table[CRT1Index].CR[0 ]; + temp2 = (unsigned short )XGI_CRT1Table[CRT1Index].CR[5 ]; tempax = (temp1 &0xFF ) | ((temp2 &0x03 ) <<8 ); - tempbx = (unsigned short ) XGI_CRT1Table[CRT1Index].CR[8 ]; + tempbx = (unsigned short )XGI_CRT1Table[CRT1Index].CR[8 ]; tempcx = (unsigned short ) XGI_CRT1Table[CRT1Index].CR[14 ] <<8 ; tempcx &=0x0100 ; tempcx <<=2 ; tempbx |= tempcx; - temp1 = (unsigned short ) XGI_CRT1Table[CRT1Index].CR[9 ]; + temp1 = (unsigned short )XGI_CRT1Table[CRT1Index].CR[9 ];if (temp1 &0x01 ) tempbx |=0x0100 ;
@@ -2747,11 +2747,11 @@ static void XGI_SetCRT2Offset(unsigned short ModeNo,return ; offset =XGI_GetOffset (ModeNo, ModeIdIndex, RefreshRateTableIndex); - temp = (unsigned char ) (offset &0xFF ); + temp = (unsigned char )(offset &0xFF );xgifb_reg_set (pVBInfo->Part1Port,0x07 , temp); - temp = (unsigned char ) ((offset &0xFF00 ) >>8 ); + temp = (unsigned char )((offset &0xFF00 ) >>8 );xgifb_reg_set (pVBInfo->Part1Port,0x09 , temp); - temp = (unsigned char ) (((offset >>3 ) &0xFF ) +1 ); + temp = (unsigned char )(((offset >>3 ) &0xFF ) +1 );xgifb_reg_set (pVBInfo->Part1Port,0x03 , temp); }
@@ -2930,7 +2930,7 @@ static unsigned short XGI_GetVGAHT2(struct vb_device_info *pVBInfo) tempax = (pVBInfo->VT - pVBInfo->VDE) * pVBInfo->RVBHCFACT; tempax = (tempax * pVBInfo->HT) / tempbx; -return (unsigned short ) tempax; +return (unsigned short )tempax; } static void XGI_SetLockRegs(unsigned short ModeNo, unsigned short ModeIdIndex,
@@ -3312,7 +3312,7 @@ static void XGI_SetGroup2(unsigned short ModeNo, unsigned short ModeIdIndex, tempax = (tempax &0x00FF ) | ((tempax &0x00FF ) <<8 ); push1 = tempax; temp = (tempax &0xFF00 ) >>8 ; - temp += (unsigned short ) TimingPoint[0 ]; + temp += (unsigned short )TimingPoint[0 ];if (pVBInfo->VBType & (VB_SIS301B |VB_SIS302B |VB_SIS301LV |VB_SIS302LV |VB_XGI301C )) {
Signature · 1 line
2.1.4