nfp: check the right pointer for errors
authorJakub Kicinski <jakub.kicinski@netronome.com>
Sat, 16 Apr 2016 10:25:49 +0000 (11:25 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Apr 2016 02:34:39 +0000 (22:34 -0400)
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>
drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c

index f86a1f13d27bd259035269cb2c7b45deee982731..d77ae4d0e4dc6085eae79e959191c6b038b4c02c 100644 (file)
@@ -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);