dect
/
linux-2.6
Archived
13
0
Fork 0

Input: grip-mp - use ARRAY_SIZE

Signed-off-by: Andi Drebes <lists-receive@programmierforen.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
Andi Drebes 2007-06-14 23:33:01 -04:00 committed by Dmitry Torokhov
parent 7ecfbfd3d0
commit 5ec1f7f3e4
1 changed files with 2 additions and 2 deletions

View File

@ -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);