OSDN Git Service

selinux: Remove unused function avc_sidcmp()
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Wed, 4 Feb 2015 16:34:30 +0000 (11:34 -0500)
committerPaul Moore <pmoore@redhat.com>
Wed, 4 Feb 2015 16:34:30 +0000 (11:34 -0500)
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>
security/selinux/avc.c

index a18f1fa..afcc0ae 100644 (file)
@@ -517,11 +517,6 @@ out:
        return rc;
 }
 
-static inline int avc_sidcmp(u32 x, u32 y)
-{
-       return (x == y || x == SECSID_WILD || y == SECSID_WILD);
-}
-
 /**
  * avc_update_node Update an AVC entry
  * @event : Updating event