All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] korina: fix misplaced return statement
@ 2008-04-20 16:05 Francois Romieu
  2008-04-20 16:06 ` [PATCH 2/2] korina: misc cleanup Francois Romieu
  2008-04-25  6:02 ` [PATCH 1/2] korina: fix misplaced return statement Jeff Garzik
  0 siblings, 2 replies; 3+ messages in thread
From: Francois Romieu @ 2008-04-20 16:05 UTC (permalink / raw)
  To: Florian Fainelli; +Cc: Jeff Garzik, netdev, Andrew Morton

The driver takes the error unwind path without condition.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
---
 drivers/net/korina.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/korina.c b/drivers/net/korina.c
index 1d24a73..305be62 100644
--- a/drivers/net/korina.c
+++ b/drivers/net/korina.c
@@ -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)
-- 
1.5.3.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-25  6:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-20 16:05 [PATCH 1/2] korina: fix misplaced return statement Francois Romieu
2008-04-20 16:06 ` [PATCH 2/2] korina: misc cleanup Francois Romieu
2008-04-25  6:02 ` [PATCH 1/2] korina: fix misplaced return statement Jeff Garzik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.