aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/signal.c
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>2016-07-29 13:58:46 +0530
committerRalf Baechle <ralf@linux-mips.org>2016-08-01 22:54:48 +0200
commit33799a6d1aeb892862d5f69ee87195becabf8d0c (patch)
treefa54fb209fae92fe9636b28474fa5a3fe2e7c253 /arch/mips/kernel/signal.c
parentMIPS: c-r4k: Use SMP calls for CM indexed cache ops (diff)
downloadlinux-dev-33799a6d1aeb892862d5f69ee87195becabf8d0c.tar.xz
linux-dev-33799a6d1aeb892862d5f69ee87195becabf8d0c.zip
MIPS: Modify error handling
debugfs_create_file returns NULL on error so an IS_ERR test is incorrect here and a NULL check is required. The Coccinelle semantic patch used to make this change is as follows: @@ expression e; @@ e = debugfs_create_file(...); if( - IS_ERR(e) + !e ) { <+... return - PTR_ERR(e) + -ENOMEM ; ...+> } Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Cc: julia.lawall@lip6.fr Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/13834/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions