mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-18 00:24:39 +00:00
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:
parent
7a7c1705dc
commit
5b161096f0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue