diff options
author | kbuild test robot <fengguang.wu@intel.com> | 2015-06-23 19:41:07 -0400 |
---|---|---|
committer | Casey Schaufler <casey@schaufler-ca.com> | 2015-07-22 15:31:40 -0400 |
commit | ca70d27e445fe721587598030b97357b35f61913 (patch) | |
tree | 15fa99e3fd1fe449d27317f20b735182c65c7234 /security/smack/smackfs.c | |
parent | 3bf2789cad9e6573dc19a6c3d123c2c049f2d90f (diff) |
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>
Diffstat (limited to 'security/smack/smackfs.c')
-rw-r--r-- | security/smack/smackfs.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/security/smack/smackfs.c b/security/smack/smackfs.c index 2716d02119f3..81a2888a9908 100644 --- a/security/smack/smackfs.c +++ b/security/smack/smackfs.c | |||
@@ -2320,11 +2320,7 @@ static const struct file_operations smk_revoke_subj_ops = { | |||
2320 | */ | 2320 | */ |
2321 | static int smk_init_sysfs(void) | 2321 | static int smk_init_sysfs(void) |
2322 | { | 2322 | { |
2323 | int err; | 2323 | return sysfs_create_mount_point(fs_kobj, "smackfs"); |
2324 | err = sysfs_create_mount_point(fs_kobj, "smackfs"); | ||
2325 | if (err) | ||
2326 | return err; | ||
2327 | return 0; | ||
2328 | } | 2324 | } |
2329 | 2325 | ||
2330 | /** | 2326 | /** |