--- zzzz-none-000/linux-3.10.107/arch/sh/mm/asids-debugfs.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/sh/mm/asids-debugfs.c 2021-02-04 17:41:59.000000000 +0000 @@ -67,10 +67,8 @@ 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);