]> git.karo-electronics.de Git - linux-beck.git/commitdiff
evm: fix checkpatch warnings
authorDmitry Kasatkin <d.kasatkin@samsung.com>
Fri, 15 Aug 2014 11:09:19 +0000 (14:09 +0300)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Tue, 2 Sep 2014 21:03:37 +0000 (17:03 -0400)
This patch fixes checkpatch 'return' warnings introduced with commit
9819cf2 "checkpatch: warn on unnecessary void function return statements".

Use scripts/checkpatch.pl --file security/integrity/evm/evm_main.c
to produce the warnings.

Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/evm/evm_main.c

index 3bcb80df4d01f1ca30927c7e61c6b2b19b5ca15f..fb71f55295dc0004139c5834b77299fc57728d44 100644 (file)
@@ -352,7 +352,6 @@ void evm_inode_post_setxattr(struct dentry *dentry, const char *xattr_name,
                return;
 
        evm_update_evmxattr(dentry, xattr_name, xattr_value, xattr_value_len);
-       return;
 }
 
 /**
@@ -372,7 +371,6 @@ void evm_inode_post_removexattr(struct dentry *dentry, const char *xattr_name)
        mutex_lock(&inode->i_mutex);
        evm_update_evmxattr(dentry, xattr_name, NULL, 0);
        mutex_unlock(&inode->i_mutex);
-       return;
 }
 
 /**
@@ -414,7 +412,6 @@ void evm_inode_post_setattr(struct dentry *dentry, int ia_valid)
 
        if (ia_valid & (ATTR_MODE | ATTR_UID | ATTR_GID))
                evm_update_evmxattr(dentry, NULL, NULL, 0);
-       return;
 }
 
 /*