From: zhong jiang Date: Sat, 8 Sep 2018 13:53:42 +0000 (+0800) Subject: xen-netback: remove unecessary condition check before debugfs_remove_recursive X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=aad06d1104e8d5afee14ee4a4b9b3f39de0c9b67;p=openwrt%2Fstaging%2Fblogic.git 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 Reviewed-by: Paul Durrant Signed-off-by: David S. Miller --- diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c index 3621e05a7494..80aae3a32c2a 100644 --- a/drivers/net/xen-netback/netback.c +++ b/drivers/net/xen-netback/netback.c @@ -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(); }