From: Fabian Frederick Date: Wed, 6 Aug 2014 23:03:41 +0000 (-0700) Subject: arch/sh/mm/asids-debugfs.c: use PTR_ERR_OR_ZERO X-Git-Tag: firefly_0821_release~176^2~3462^2~216 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=88f9802c4f37dd6be588feae24f74e26aacb1779;p=firefly-linux-kernel-4.4.55.git arch/sh/mm/asids-debugfs.c: use PTR_ERR_OR_ZERO Replace IS_ERR/PTR_ERR. Signed-off-by: Fabian Frederick Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/sh/mm/asids-debugfs.c b/arch/sh/mm/asids-debugfs.c index 74c03ecc4871..ecfc6b0c1da1 100644 --- a/arch/sh/mm/asids-debugfs.c +++ b/arch/sh/mm/asids-debugfs.c @@ -67,10 +67,8 @@ static int __init asids_debugfs_init(void) NULL, &asids_debugfs_fops); if (!asids_dentry) return -ENOMEM; - if (IS_ERR(asids_dentry)) - return PTR_ERR(asids_dentry); - return 0; + return PTR_ERR_OR_ZERO(asids_dentry); } module_init(asids_debugfs_init);