From: Jakub Kicinski Date: Sat, 16 Apr 2016 10:25:49 +0000 (+0100) Subject: nfp: check the right pointer for errors X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5b161096f0515b61b72156cd0c1e5c72e77cfed8;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git nfp: check the right pointer for errors Correct checking error condition on wrong pointer - copy/paste mistake most likely. Signed-off-by: Jakub Kicinski Signed-off-by: David S. Miller --- 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);