Skip to content

Commit

Permalink
selinux: Delete an unnecessary return statement in policydb_destroy()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Markus Elfring authored and Paul Moore committed Mar 23, 2017
1 parent ad10a10 commit b4e4686
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions security/selinux/ss/policydb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

return;
}

/*
Expand Down

0 comments on commit b4e4686

Please sign in to comment.