diff options
author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | 2015-02-04 11:34:30 -0500 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2015-02-04 11:34:30 -0500 |
commit | e230f12c98232de0c40a81f28a34d2cff8450e7f (patch) | |
tree | 83e2f3a130114ad23f7663df1dadf16c46425b44 /security | |
parent | 11cd64a234d5a1a7111627ef947beb0e5fad9e71 (diff) |
selinux: Remove unused function avc_sidcmp()
Remove the function avc_sidcmp() that is not used anywhere.
This was partially found by using a static code analysis program called cppcheck.
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
[PM: rewrite the patch subject line]
Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/avc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/security/selinux/avc.c b/security/selinux/avc.c index a18f1fa6440b..afcc0aed9393 100644 --- a/security/selinux/avc.c +++ b/security/selinux/avc.c | |||
@@ -517,11 +517,6 @@ out: | |||
517 | return rc; | 517 | return rc; |
518 | } | 518 | } |
519 | 519 | ||
520 | static inline int avc_sidcmp(u32 x, u32 y) | ||
521 | { | ||
522 | return (x == y || x == SECSID_WILD || y == SECSID_WILD); | ||
523 | } | ||
524 | |||
525 | /** | 520 | /** |
526 | * avc_update_node Update an AVC entry | 521 | * avc_update_node Update an AVC entry |
527 | * @event : Updating event | 522 | * @event : Updating event |