selinux: Delete an unnecessary return statement in policydb_destroy()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 14 Jan 2017 13:00:02 +0000 (14:00 +0100)
committerPaul Moore <paul@paul-moore.com>
Thu, 23 Mar 2017 21:21:26 +0000 (17:21 -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/policydb.c

index 66b9a35..bccc9ac 100644 (file)
@@ -880,8 +880,6 @@ void policydb_destroy(struct policydb *p)
        ebitmap_destroy(&p->filename_trans_ttypes);
        ebitmap_destroy(&p->policycaps);
        ebitmap_destroy(&p->permissive_map);
        ebitmap_destroy(&p->filename_trans_ttypes);
        ebitmap_destroy(&p->policycaps);
        ebitmap_destroy(&p->permissive_map);
-
-       return;
 }
 
 /*
 }
 
 /*