提交 8e4946cc 编写于 作者: D David S. Miller

Revert "net: return actual error on register_queue_kobjects"

This reverts commit d36a4f4b.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6f9a093b
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册