提交 751c2e47 编写于 作者: F Francois Romieu 提交者: Jeff Garzik

korina: fix misplaced return statement

The driver takes the error unwind path without condition.
Signed-off-by: NFrancois Romieu <romieu@fr.zoreil.com>
Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
上级 d753d824
......@@ -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 @@ 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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册