selinux: Delete an unnecessary return statement in cond_compute_av()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 14 Jan 2017 10:00:23 +0000 (11:00 +0100)
committerPaul Moore <paul@paul-moore.com>
Thu, 23 Mar 2017 20:25:42 +0000 (16:25 -0400)
The script "checkpatch.pl" pointed information out like the following.

WARNING: void function return statements are not generally useful

Thus remove such a statement in the affected function.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/conditional.c

index fcfab2635c11cc001a505385ca703bfb379c79fd..4a3bf29f7565a840f803f47ab7db4c2b124c99f5 100644 (file)
@@ -664,5 +664,4 @@ void cond_compute_av(struct avtab *ctab, struct avtab_key *key,
                                (node->key.specified & AVTAB_XPERMS))
                        services_compute_xperms_drivers(xperms, node);
        }
-       return;
 }