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:
Aaro Koskinen 2011-12-06 00:10:32 +02:00 committed by Greg Kroah-Hartman
parent bd76127489
commit 83fae3970e

View file

@ -1148,9 +1148,7 @@ static void ReadVBIOSTablData(unsigned char ChipType,
i += 25;
j--;
k++;
} while ((j > 0) &&
(k < (sizeof(XGI21_LCDCapList) /
sizeof(struct XGI21_LVDSCapStruct))));
} while (j > 0 && k < ARRAY_SIZE(XGI21_LCDCapList));
}
static void XGINew_ChkSenseStatus(struct xgi_hw_device_info *HwDeviceExtension,