diff options
author | Ding Xiang <dingxiang@cmss.chinamobile.com> | 2019-09-24 05:58:54 +0300 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2019-10-05 07:11:57 +0300 |
commit | 0ad82e3a2234dfa38ec835d1772e8c9af176d458 (patch) | |
tree | c581abbb351ca6d439f110312b0256ef893b4fe1 /drivers/remoteproc | |
parent | 006d72da28db06a0762b1f536458ac1a9a4ba8d1 (diff) | |
download | linux-0ad82e3a2234dfa38ec835d1772e8c9af176d458.tar.xz |
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>
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r-- | drivers/remoteproc/remoteproc_debugfs.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/remoteproc/remoteproc_debugfs.c b/drivers/remoteproc/remoteproc_debugfs.c index 8cd4a0a3892b..dd93cf04e17f 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); } |