提交 5b161096 编写于 作者: J Jakub Kicinski 提交者: David S. Miller

nfp: check the right pointer for errors

Correct checking error condition on wrong pointer -
copy/paste mistake most likely.
Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 7a7c1705
...@@ -200,7 +200,7 @@ void nfp_net_debugfs_adapter_add(struct nfp_net *nn) ...@@ -200,7 +200,7 @@ void nfp_net_debugfs_adapter_add(struct nfp_net *nn)
/* Create queue debugging sub-tree */ /* Create queue debugging sub-tree */
queues = debugfs_create_dir("queue", nn->debugfs_dir); queues = debugfs_create_dir("queue", nn->debugfs_dir);
if (IS_ERR_OR_NULL(nn->debugfs_dir)) if (IS_ERR_OR_NULL(queues))
return; return;
rx = debugfs_create_dir("rx", queues); rx = debugfs_create_dir("rx", queues);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册