]> err.no Git - linux-2.6/commitdiff
korina: fix misplaced return statement
authorFrancois Romieu <romieu@fr.zoreil.com>
Sun, 20 Apr 2008 16:05:31 +0000 (18:05 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 25 Apr 2008 06:08:10 +0000 (02:08 -0400)
The driver takes the error unwind path without condition.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/korina.c

index 1d24a73a0e1a1d268c1d319bcd3625a63d5d47da..305be62425242fd115ddfd20211c6f65861383af 100644 (file)
@@ -1031,6 +1031,8 @@ static int korina_open(struct net_device *dev)
                    dev->name, lp->und_irq);
                goto err_free_ovr_irq;
        }
+out:
+       return ret;
 
 err_free_ovr_irq:
        free_irq(lp->ovr_irq, dev);
@@ -1041,8 +1043,6 @@ err_free_rx_irq:
 err_release:
        korina_free_ring(dev);
        goto out;
-out:
-       return ret;
 }
 
 static int korina_close(struct net_device *dev)