Commit 83fae397 authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Greg Kroah-Hartman

staging: xgifb: ReadVBIOSTablData(): use ARRAY_SIZE

Use ARRAY_SIZE.
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent bd761274
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment