diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2011-12-06 00:10:32 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-12-08 12:26:01 -0800 |
commit | 83fae3970ec3ae5f9288643599c4d21edad6e572 (patch) | |
tree | 5126cb063282bc57674b0096625a17721bc4fdf8 /drivers/staging/xgifb | |
parent | bd76127489959e5e7da4fd4990a55086026e135b (diff) |
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>
Diffstat (limited to 'drivers/staging/xgifb')
-rw-r--r-- | drivers/staging/xgifb/vb_init.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/xgifb/vb_init.c b/drivers/staging/xgifb/vb_init.c index c9b5285b7cb..a1caf3cf44c 100644 --- a/drivers/staging/xgifb/vb_init.c +++ b/drivers/staging/xgifb/vb_init.c @@ -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, |