mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 08:34:20 +08:00
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: 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
0527097ce8
commit
aad06d1104
@ -1660,8 +1660,7 @@ 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);
|
||||
debugfs_remove_recursive(xen_netback_dbg_root);
|
||||
#endif /* CONFIG_DEBUG_FS */
|
||||
xenvif_xenbus_fini();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user