提交 83fae397 编写于 作者: A Aaro Koskinen 提交者: Greg Kroah-Hartman

staging: xgifb: ReadVBIOSTablData(): use ARRAY_SIZE

Use ARRAY_SIZE.
Signed-off-by: NAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册