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>
This commit is contained in:
Jakub Kicinski 2016-04-16 11:25:49 +01:00 committed by David S. Miller
parent 7a7c1705dc
commit 5b161096f0
1 changed files with 1 additions and 1 deletions

View File

@ -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);