diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2016-04-16 12:25:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-17 04:34:39 +0200 |
commit | 5b161096f0515b61b72156cd0c1e5c72e77cfed8 (patch) | |
tree | bfd49b84290c6987beba04923501b421344ba88f /drivers/net/ethernet/netronome | |
parent | Merge branch 'IFF_NO_QUEUE-followups' (diff) | |
download | linux-5b161096f0515b61b72156cd0c1e5c72e77cfed8.tar.xz linux-5b161096f0515b61b72156cd0c1e5c72e77cfed8.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/netronome')
-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); |