Commit 0ad82e3a authored by Ding Xiang's avatar Ding Xiang Committed by Bjorn Andersson

remoteproc: debug: Remove unneeded NULL check

debugfs_remove_recursive will do NULL check, so remove
the redundant null check
Signed-off-by: default avatarDing Xiang <dingxiang@cmss.chinamobile.com>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 006d72da
...@@ -333,9 +333,6 @@ struct dentry *rproc_create_trace_file(const char *name, struct rproc *rproc, ...@@ -333,9 +333,6 @@ struct dentry *rproc_create_trace_file(const char *name, struct rproc *rproc,
void rproc_delete_debug_dir(struct rproc *rproc) void rproc_delete_debug_dir(struct rproc *rproc)
{ {
if (!rproc->dbg_dir)
return;
debugfs_remove_recursive(rproc->dbg_dir); debugfs_remove_recursive(rproc->dbg_dir);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment