diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2016-04-16 11:25:49 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-16 22:34:39 -0400 |
commit | 5b161096f0515b61b72156cd0c1e5c72e77cfed8 (patch) | |
tree | bfd49b84290c6987beba04923501b421344ba88f | |
parent | 7a7c1705dc6c629e3b1dce1c0c1ecc0af87486ac (diff) |
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>
-rw-r--r-- | drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c b/drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c index f86a1f13d27b..d77ae4d0e4dc 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c +++ b/drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c @@ -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); |