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

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: 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 f973b768
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -254,7 +254,6 @@ static void xenvif_debugfs_delif(struct xenvif *vif)
	if (IS_ERR_OR_NULL(xen_netback_dbg_root))
		return;

	if (!IS_ERR_OR_NULL(vif->xenvif_dbg_root))
	debugfs_remove_recursive(vif->xenvif_dbg_root);
	vif->xenvif_dbg_root = NULL;
}