WAN: Fix confusing insmod error code for C101 too.
Subsystems (3)
Krzysztof Halasa
maintainerPATCH 1/1 WAN: Fix confusing insmod error code for C101 too.
WAN: Fix confusing insmod error code for C101 too.
Signed-off-by Krzysztof Hałasa <[email protected]>
drivers/net/wan/c101.c +3 -3
@@ -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);
@@ -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 ; }
Jeff Garzik
AppliedQuoted 20 lines · Krzysztof Halasa
WAN: Fix confusing insmod error code for C101 too.
Signed-off-by Krzysztof Hałasa <[email protected]>drivers/net/wan/c101.c +1
-1@@ -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);@@ -420,11 +420,11 @@ static int __init c101_init(void)c101_run (irq, ram);
drivers/net/wan/c101.c static int __init c101_init(void) · line 429
Quoted 10 lines
drivers/net/wan/c101.c +2
-2if (*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 ; }
applied