char: riscom, fix rc_board indexing
authorJiri Slaby <jirislaby@gmail.com>
Thu, 13 Mar 2008 19:32:39 +0000 (12:32 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Mar 2008 20:11:43 +0000 (13:11 -0700)
commit9efda797d60adbbe77aaf33cda0dfee161ac712c
treec210375df8efc2ff2a7f4727c81dbb3a47077c98
parent2cfb8ce8c87802181ade74f5dadb3dded9bb4c7e
char: riscom, fix rc_board indexing

In riscom8_init_module, rc_board should be indexed by i, not by 0, otherwise
the loop is useless.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/riscom8.c