Skip to content

Commit

Permalink
cxgb4: propagate link initialization errors to .ndo_open's callers
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitris Michailidis <dm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Dimitris Michailidis authored and David S. Miller committed Jun 19, 2010
1 parent 9be793b commit f68707b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/net/cxgb4/cxgb4_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2512,9 +2512,10 @@ static int cxgb_open(struct net_device *dev)
}

dev->real_num_tx_queues = pi->nqsets;
link_start(dev);
netif_tx_start_all_queues(dev);
return 0;
err = link_start(dev);
if (!err)
netif_tx_start_all_queues(dev);
return err;
}

static int cxgb_close(struct net_device *dev)
Expand Down

0 comments on commit f68707b

Please sign in to comment.