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>
This commit is contained in:
Родитель
2cfb8ce8c8
Коммит
9efda797d6
|
@ -1709,7 +1709,7 @@ static int __init riscom8_init_module (void)
|
|||
|
||||
if (iobase || iobase1 || iobase2 || iobase3) {
|
||||
for(i = 0; i < RC_NBOARD; i++)
|
||||
rc_board[0].base = 0;
|
||||
rc_board[i].base = 0;
|
||||
}
|
||||
|
||||
if (iobase)
|
||||
|
|
Загрузка…
Ссылка в новой задаче