提交 ca70d27e 编写于 作者: K kbuild test robot 提交者: Casey Schaufler

sysfs: fix simple_return.cocci warnings

security/smack/smackfs.c:2251:1-4: WARNING: end returns can be
simpified and declaration on line 2250 can be dropped

 Simplify a trivial if-return sequence.  Possibly combine with a
 preceding function call.

Generated by: scripts/coccinelle/misc/simple_return.cocci
Signed-off-by: NFengguang Wu <fengguang.wu@intel.com>
Acked-by: NSerge Hallyn <serge.hallyn@canonical.com>
Acked-by: NCasey Schaufler <casey@schaufler-ca.com>
上级 3bf2789c
......@@ -2320,11 +2320,7 @@ static const struct file_operations smk_revoke_subj_ops = {
*/
static int smk_init_sysfs(void)
{
int err;
err = sysfs_create_mount_point(fs_kobj, "smackfs");
if (err)
return err;
return 0;
return sysfs_create_mount_point(fs_kobj, "smackfs");
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册