From: Ding Xiang Date: Tue, 24 Sep 2019 02:58:54 +0000 (+0800) Subject: remoteproc: debug: Remove unneeded NULL check X-Git-Tag: v5.5-rc1~88^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0ad82e3a2234dfa38ec835d1772e8c9af176d458;p=thirdparty%2Fkernel%2Flinux.git remoteproc: debug: Remove unneeded NULL check debugfs_remove_recursive will do NULL check, so remove the redundant null check Signed-off-by: Ding Xiang Signed-off-by: Bjorn Andersson --- diff --git a/drivers/remoteproc/remoteproc_debugfs.c b/drivers/remoteproc/remoteproc_debugfs.c index 8cd4a0a3892b4..dd93cf04e17f2 100644 --- a/drivers/remoteproc/remoteproc_debugfs.c +++ b/drivers/remoteproc/remoteproc_debugfs.c @@ -333,9 +333,6 @@ struct dentry *rproc_create_trace_file(const char *name, struct rproc *rproc, void rproc_delete_debug_dir(struct rproc *rproc) { - if (!rproc->dbg_dir) - return; - debugfs_remove_recursive(rproc->dbg_dir); }