forked from Minki/linux
arch/sh/mm/asids-debugfs.c: use PTR_ERR_OR_ZERO
Replace IS_ERR/PTR_ERR. Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
455f972624
commit
88f9802c4f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user