mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 09:31:26 +00:00
Char: stallion, don't fail with less than max panels
Since it's not neccesary to have MAX_PANELS on the card, don't fail to let users use this card even in this case. Stop the testing for loop instead. Thanks to Ingo. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Cc: "Ingo Korb" <ingo@akana.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
193faea928
commit
64834b226b
@ -2172,7 +2172,7 @@ static int __devinit stl_initech(struct stlbrd *brdp)
|
||||
}
|
||||
status = inb(ioaddr + ECH_PNLSTATUS);
|
||||
if ((status & ECH_PNLIDMASK) != nxtid)
|
||||
goto err_fr;
|
||||
break;
|
||||
panelp = kzalloc(sizeof(struct stlpanel), GFP_KERNEL);
|
||||
if (!panelp) {
|
||||
printk("STALLION: failed to allocate memory "
|
||||
|
Loading…
Reference in New Issue
Block a user