Skip to content

Commit

Permalink
nfp: check the right pointer for errors
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jakub Kicinski authored and David S. Miller committed Apr 17, 2016
1 parent 7a7c170 commit 5b16109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5b16109

Please sign in to comment.