diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-22 15:41:11 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2019-01-31 17:38:19 +0000 |
commit | e2a2e56e40822ab78e304198387f61314af7d7ce (patch) | |
tree | 6c10ff351db17ab0879dd9da7becd02512ae97f8 /arch/arm64/mm/ptdump_debugfs.c | |
parent | 0bd3ef34d2a8dd4056560567073d8bfc5da92e39 (diff) | |
download | linux-e2a2e56e40822ab78e304198387f61314af7d7ce.tar.gz linux-e2a2e56e40822ab78e304198387f61314af7d7ce.tar.bz2 linux-e2a2e56e40822ab78e304198387f61314af7d7ce.zip |
arm64: dump: no need to check return value of debugfs_create functions
When calling debugfs functions, there is no need to ever check the
return value. The function can work or not, but the code logic should
never do something different based on this.
Cc: Will Deacon <will.deacon@arm.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Peng Donglin <dolinux.peng@gmail.com>
Cc: <linux-arm-kernel@lists.infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/mm/ptdump_debugfs.c')
-rw-r--r-- | arch/arm64/mm/ptdump_debugfs.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm64/mm/ptdump_debugfs.c b/arch/arm64/mm/ptdump_debugfs.c index 24d786fc3a4c..064163f25592 100644 --- a/arch/arm64/mm/ptdump_debugfs.c +++ b/arch/arm64/mm/ptdump_debugfs.c @@ -12,10 +12,7 @@ static int ptdump_show(struct seq_file *m, void *v) } DEFINE_SHOW_ATTRIBUTE(ptdump); -int ptdump_debugfs_register(struct ptdump_info *info, const char *name) +void ptdump_debugfs_register(struct ptdump_info *info, const char *name) { - struct dentry *pe; - pe = debugfs_create_file(name, 0400, NULL, info, &ptdump_fops); - return pe ? 0 : -ENOMEM; - + debugfs_create_file(name, 0400, NULL, info, &ptdump_fops); } |