Skip to content

Commit

Permalink
Revert "net: return actual error on register_queue_kobjects"
Browse files Browse the repository at this point in the history
This reverts commit d36a4f4.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jun 20, 2014
1 parent 6f9a093 commit 8e4946c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/core/net-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1200,8 +1200,8 @@ static int register_queue_kobjects(struct net_device *net)
#ifdef CONFIG_SYSFS
net->queues_kset = kset_create_and_add("queues",
NULL, &net->dev.kobj);
if (IS_ERR(net->queues_kset))
return PTR_ERR(net->queues_kset);
if (!net->queues_kset)
return -ENOMEM;
real_rx = net->real_num_rx_queues;
#endif
real_tx = net->real_num_tx_queues;
Expand Down

0 comments on commit 8e4946c

Please sign in to comment.