]> git.karo-electronics.de Git - linux-beck.git/commit
sysfs: fix simple_return.cocci warnings
authorkbuild test robot <fengguang.wu@intel.com>
Tue, 23 Jun 2015 23:41:07 +0000 (07:41 +0800)
committerCasey Schaufler <casey@schaufler-ca.com>
Wed, 22 Jul 2015 19:31:40 +0000 (12:31 -0700)
commitca70d27e445fe721587598030b97357b35f61913
tree15fa99e3fd1fe449d27317f20b735182c65c7234
parent3bf2789cad9e6573dc19a6c3d123c2c049f2d90f
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>
security/smack/smackfs.c