staging: xgifb: ReadVBIOSTablData(): use ARRAY_SIZE
Use ARRAY_SIZE. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
bd76127489
commit
83fae3970e
1 changed files with 1 additions and 3 deletions
|
@ -1148,9 +1148,7 @@ static void ReadVBIOSTablData(unsigned char ChipType,
|
||||||
i += 25;
|
i += 25;
|
||||||
j--;
|
j--;
|
||||||
k++;
|
k++;
|
||||||
} while ((j > 0) &&
|
} while (j > 0 && k < ARRAY_SIZE(XGI21_LCDCapList));
|
||||||
(k < (sizeof(XGI21_LCDCapList) /
|
|
||||||
sizeof(struct XGI21_LVDSCapStruct))));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void XGINew_ChkSenseStatus(struct xgi_hw_device_info *HwDeviceExtension,
|
static void XGINew_ChkSenseStatus(struct xgi_hw_device_info *HwDeviceExtension,
|
||||||
|
|
Loading…
Reference in a new issue