[PATCH 01/10] staging/xgifb: Simplify XGI_GetRatePtrCRT2

2013-02-03 Thread Peter Huewe
Since the smaller LCDRefreshIndex is contained identically in LCDARefreshIndex we can simply use LCDARefreshIndex and skip the if/else. Since LCDARefreshIndex is only used readonly and contains only small unsigned values we also change its declaration to const u8. In order to prevent an out-of-bo

Re: [PATCH 01/10] staging/xgifb: Simplify XGI_GetRatePtrCRT2

2013-02-04 Thread Aaro Koskinen
Hi, On Sun, Feb 03, 2013 at 10:54:30PM +0100, Peter Huewe wrote: > Since the smaller LCDRefreshIndex is contained identically in LCDARefreshIndex > we can simply use LCDARefreshIndex and skip the if/else. > > Since LCDARefreshIndex is only used readonly and contains only small > unsigned values w