mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
korina: fix misplaced return statement
The driver takes the error unwind path without condition. Signed-off-by: Francois Romieu <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
parent
d753d82405
commit
751c2e4755
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue