diff options
-rw-r--r-- | drivers/net/wan/cosa.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c index 88d121d43c08..bcfa01add7cc 100644 --- a/drivers/net/wan/cosa.c +++ b/drivers/net/wan/cosa.c | |||
@@ -579,6 +579,7 @@ static int cosa_probe(int base, int irq, int dma) | |||
579 | /* Register the network interface */ | 579 | /* Register the network interface */ |
580 | if (!(chan->netdev = alloc_hdlcdev(chan))) { | 580 | if (!(chan->netdev = alloc_hdlcdev(chan))) { |
581 | pr_warn("%s: alloc_hdlcdev failed\n", chan->name); | 581 | pr_warn("%s: alloc_hdlcdev failed\n", chan->name); |
582 | err = -ENOMEM; | ||
582 | goto err_hdlcdev; | 583 | goto err_hdlcdev; |
583 | } | 584 | } |
584 | dev_to_hdlc(chan->netdev)->attach = cosa_net_attach; | 585 | dev_to_hdlc(chan->netdev)->attach = cosa_net_attach; |