Skip to content

Commit

Permalink
WAN: Fix confusing insmod error code for C101 too.
Browse files Browse the repository at this point in the history
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Krzysztof Halasa authored and Jeff Garzik committed Apr 25, 2008
1 parent 7cda1ed commit d753d82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/wan/c101.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ static int __init c101_init(void)
#ifdef MODULE
printk(KERN_INFO "c101: no card initialized\n");
#endif
return -ENOSYS; /* no parameters specified, abort */
return -EINVAL; /* no parameters specified, abort */
}

printk(KERN_INFO "%s\n", version);
Expand All @@ -420,11 +420,11 @@ static int __init c101_init(void)
c101_run(irq, ram);

if (*hw == '\x0')
return first_card ? 0 : -ENOSYS;
return first_card ? 0 : -EINVAL;
}while(*hw++ == ':');

printk(KERN_ERR "c101: invalid hardware parameters\n");
return first_card ? 0 : -ENOSYS;
return first_card ? 0 : -EINVAL;
}


Expand Down

0 comments on commit d753d82

Please sign in to comment.