diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/sk98lin/uboot_drv.c | 2 |
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); } |