mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 07:50:04 +00:00
net: xenbus: remove redundant condition check before debugfs_remove_recursive
debugfs_remove_recursive has taken the IS_ERR_OR_NULL into account. Just remove the unnecessary condition check. Signed-off-by: zhong jiang <zhongjiang@huawei.com> Reviewed-by: Paul Durrant <paul.durrant@citrix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f973b76888
commit
0527097ce8
@ -254,8 +254,7 @@ static void xenvif_debugfs_delif(struct xenvif *vif)
|
|||||||
if (IS_ERR_OR_NULL(xen_netback_dbg_root))
|
if (IS_ERR_OR_NULL(xen_netback_dbg_root))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!IS_ERR_OR_NULL(vif->xenvif_dbg_root))
|
debugfs_remove_recursive(vif->xenvif_dbg_root);
|
||||||
debugfs_remove_recursive(vif->xenvif_dbg_root);
|
|
||||||
vif->xenvif_dbg_root = NULL;
|
vif->xenvif_dbg_root = NULL;
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_DEBUG_FS */
|
#endif /* CONFIG_DEBUG_FS */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user