Skip to content

Commit

Permalink
korina: fix misplaced return statement
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Francois Romieu authored and Jeff Garzik committed Apr 25, 2008
1 parent d753d82 commit 751c2e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/korina.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -1041,8 +1043,6 @@ static int korina_open(struct net_device *dev)
err_release:
korina_free_ring(dev);
goto out;
out:
return ret;
}

static int korina_close(struct net_device *dev)
Expand Down

0 comments on commit 751c2e4

Please sign in to comment.