Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aad06d11 authored by zhong jiang's avatar zhong jiang Committed by David S. Miller
Browse files

xen-netback: remove unecessary condition check before debugfs_remove_recursive



debugfs_remove_recursive has taken IS_ERR_OR_NULL into account. So just
remove the condition check before debugfs_remove_recursive.

Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
Reviewed-by: default avatarPaul Durrant <paul.durrant@citrix.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0527097c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1660,7 +1660,6 @@ module_init(netback_init);
static void __exit netback_fini(void)
{
#ifdef CONFIG_DEBUG_FS
	if (!IS_ERR_OR_NULL(xen_netback_dbg_root))
	debugfs_remove_recursive(xen_netback_dbg_root);
#endif /* CONFIG_DEBUG_FS */
	xenvif_xenbus_fini();