提交 5ec1f7f3 编写于 作者: A Andi Drebes 提交者: Dmitry Torokhov

Input: grip-mp - use ARRAY_SIZE

Signed-off-by: NAndi Drebes <lists-receive@programmierforen.de>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 7ecfbfd3
......@@ -320,10 +320,10 @@ static int multiport_io(struct gameport* gameport, int sendflags, int sendcode,
static int dig_mode_start(struct gameport *gameport, u32 *packet)
{
int i, seq_len = sizeof(init_seq)/sizeof(int);
int i;
int flags, tries = 0, bads = 0;
for (i = 0; i < seq_len; i++) { /* Send magic sequence */
for (i = 0; i < ARRAY_SIZE(init_seq); i++) { /* Send magic sequence */
if (init_seq[i])
gameport_trigger(gameport);
udelay(GRIP_INIT_DELAY);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册