1
0
Fork 0

remoteproc: debug: Remove unneeded NULL check

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>
alistair/sunxi64-5.5-dsi
Ding Xiang 2019-09-24 10:58:54 +08:00 committed by Bjorn Andersson
parent 006d72da28
commit 0ad82e3a22
1 changed files with 0 additions and 3 deletions

View 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);
}