Message ID | 20190813192126.122370-5-matthewgarrett@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | lockdown fixups | expand |
diff --git a/security/lockdown/lockdown.c b/security/lockdown/lockdown.c index f6c74cf6a798..0068cec77c05 100644 --- a/security/lockdown/lockdown.c +++ b/security/lockdown/lockdown.c @@ -176,10 +176,7 @@ static int __init lockdown_secfs_init(void) dentry = securityfs_create_file("lockdown", 0600, NULL, NULL, &lockdown_ops); - if (IS_ERR(dentry)) - return PTR_ERR(dentry); - - return 0; + return PTR_ERR_OR_ZERO(dentry); } core_initcall(lockdown_secfs_init);