LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] Char: riscom, fix rc_board indexing
@ 2008-03-10 14:24 Jiri Slaby
0 siblings, 0 replies; 2+ messages in thread
From: Jiri Slaby @ 2008-03-10 14:24 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel, Jiri Slaby
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>
---
drivers/char/riscom8.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/char/riscom8.c b/drivers/char/riscom8.c
index b7373c0..ef43b36 100644
--- a/drivers/char/riscom8.c
+++ b/drivers/char/riscom8.c
@@ -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)
--
1.5.4.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] Char: riscom, fix rc_board indexing
@ 2008-03-10 14:40 Jiri Slaby
0 siblings, 0 replies; 2+ messages in thread
From: Jiri Slaby @ 2008-03-10 14:40 UTC (permalink / raw)
Cc: linux-kernel, Jiri Slaby
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>
---
drivers/char/riscom8.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/char/riscom8.c b/drivers/char/riscom8.c
index b7373c0..ef43b36 100644
--- a/drivers/char/riscom8.c
+++ b/drivers/char/riscom8.c
@@ -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)
--
1.5.4.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-10 15:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-10 14:24 [PATCH] Char: riscom, fix rc_board indexing Jiri Slaby
2008-03-10 14:40 Jiri Slaby
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).