From: Rickard Strandqvist Date: Wed, 4 Feb 2015 16:34:30 +0000 (-0500) Subject: selinux: Remove unused function avc_sidcmp() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e230f12c98232de0c40a81f28a34d2cff8450e7f;p=linux-beck.git 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 [PM: rewrite the patch subject line] Signed-off-by: Paul Moore --- 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: 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