mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 12:06:42 +07: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
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user