remoteproc: debug: Remove unneeded NULL check
authorDing Xiang <dingxiang@cmss.chinamobile.com>
Tue, 24 Sep 2019 02:58:54 +0000 (10:58 +0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sat, 5 Oct 2019 04:11:57 +0000 (21:11 -0700)
debugfs_remove_recursive will do NULL check, so remove
the redundant null check

Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_debugfs.c

index 8cd4a0a3892b45be739c1c521828026911799486..dd93cf04e17f262f60176dd66b83a05f08b177eb 100644 (file)
@@ -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);
 }