Skip to contentSkip to conversation

4/5: eepro: fix return value in init_module()

PATCH New Aristeu Sergio Rozanski Filho 1 participant 1 message Nov 18, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 4/5: eepro: fix return value in init_module()

Signature · 2 lines
-- 
Aristeu

eepro: fix return value in init_module()

drivers/net/eepro.c renamed from drivers/net/eepro.c.orig +1 -1
@@ -1811,7 +1811,7 @@ init_module(void)
 	if (io[0] == 0 && autodetect == 0) {
 		printk(KERN_WARNING "eepro_init_module: Probe is very dangerous in ISA boards!\n");
 		printk(KERN_WARNING "eepro_init_module: Please add \"autodetect=1\" to force probe\n");
-		return 1;
+		return -ENODEV;
 	}
 	else if (autodetect) {
 		/* if autodetect is set then we must force detection */