Commit 5b161096 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by 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: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment