Skip to content

Commit

Permalink
rtnetlink: remove initialization of dev->real_num_tx_queues
Browse files Browse the repository at this point in the history
dev->real_num_tx_queues is correctly set already in alloc_netdev_mqs.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jiri Pirko authored and David S. Miller committed Aug 11, 2011
1 parent d5da451 commit e7c379d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/core/rtnetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,6 @@ struct net_device *rtnl_create_link(struct net *src_net, struct net *net,
dev_net_set(dev, net);
dev->rtnl_link_ops = ops;
dev->rtnl_link_state = RTNL_LINK_INITIALIZING;
dev->real_num_tx_queues = real_num_queues;

if (tb[IFLA_MTU])
dev->mtu = nla_get_u32(tb[IFLA_MTU]);
Expand Down

0 comments on commit e7c379d

Please sign in to comment.