Skip to content

Commit

Permalink
selinux: Remove unused function avc_sidcmp()
Browse files Browse the repository at this point in the history
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 <[email protected]>
[PM: rewrite the patch subject line]
Signed-off-by: Paul Moore <[email protected]>
  • Loading branch information
Rickard Strandqvist authored and pcmoore committed Feb 4, 2015
1 parent 11cd64a commit e230f12
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions security/selinux/avc.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,11 +517,6 @@ int __init avc_add_callback(int (*callback)(u32 event), u32 events)
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
Expand Down

0 comments on commit e230f12

Please sign in to comment.