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

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
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);
}