Skip to contentSkip to conversation

Char: riscom, fix rc_board indexing

PATCH New Jiri Slaby 1 participant 1 message Mar 10, 2008 Char and misc drivers

lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/char/riscom8.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/char/riscom8.c +1 -1
index b7373c0..ef43b36 100644
@@ -1712,7 +1712,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)
Signature · 1 line
1.5.4.1