mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 15:10:38 +00:00
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: Fengguang Wu <fengguang.wu@intel.com> Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Acked-by: Casey Schaufler <casey@schaufler-ca.com>
This commit is contained in:
parent
3bf2789cad
commit
ca70d27e44
@ -2320,11 +2320,7 @@ static const struct file_operations smk_revoke_subj_ops = {
|
|||||||
*/
|
*/
|
||||||
static int smk_init_sysfs(void)
|
static int smk_init_sysfs(void)
|
||||||
{
|
{
|
||||||
int err;
|
return sysfs_create_mount_point(fs_kobj, "smackfs");
|
||||||
err = sysfs_create_mount_point(fs_kobj, "smackfs");
|
|
||||||
if (err)
|
|
||||||
return err;
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user