Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e230f12c authored by Rickard Strandqvist's avatar Rickard Strandqvist Committed by Paul Moore
Browse files

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: default avatarRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
[PM: rewrite the patch subject line]
Signed-off-by: default avatarPaul Moore <pmoore@redhat.com>
parent 11cd64a2
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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