Skip to content

Commit

Permalink
remoteproc: debug: Remove unneeded NULL check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ding Xiang authored and Bjorn Andersson committed Oct 5, 2019
1 parent 006d72d commit 0ad82e3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/remoteproc/remoteproc_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 0ad82e3

Please sign in to comment.