nfp: check the right pointer for errors

Correct checking error condition on wrong pointer -
copy/paste mistake most likely.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
这个提交包含在:
Jakub Kicinski
2016-04-16 11:25:49 +01:00
提交者 David S. Miller
父节点 7a7c1705dc
当前提交 5b161096f0

查看文件

@@ -200,7 +200,7 @@ void nfp_net_debugfs_adapter_add(struct nfp_net *nn)
/* Create queue debugging sub-tree */
queues = debugfs_create_dir("queue", nn->debugfs_dir);
if (IS_ERR_OR_NULL(nn->debugfs_dir))
if (IS_ERR_OR_NULL(queues))
return;
rx = debugfs_create_dir("rx", queues);