summaryrefslogtreecommitdiff
path: root/drivers/net/sk98lin/uboot_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sk98lin/uboot_drv.c')
-rw-r--r--drivers/net/sk98lin/uboot_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sk98lin/uboot_drv.c b/drivers/net/sk98lin/uboot_drv.c
index 8b04842..205e7d2 100644
--- a/drivers/net/sk98lin/uboot_drv.c
+++ b/drivers/net/sk98lin/uboot_drv.c
@@ -70,7 +70,7 @@ int skge_initialize(bd_t * bis)
eth_register(dev[i]);
}
- return numdev;
+ return ((numdev > 0) && (numdev <= SKGE_MAX_CARDS) ? 0 : -1);
}