LSM: do not initialize common_audit_data to 0

It isn't needed.  If you don't set the type of the data associated with
that type it is a pretty obvious programming bug.  So why waste the cycles?

Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:
Eric Paris
2012-04-04 15:01:43 -04:00
parent 07f62eb66c
commit 50c205f5e5
12 changed files with 44 additions and 49 deletions

View File

@@ -469,7 +469,7 @@ noinline int slow_avc_audit(u32 ssid, u32 tsid, u16 tclass,
if (!a) {
a = &stack_data;
COMMON_AUDIT_DATA_INIT(a, LSM_AUDIT_DATA_NONE);
a->type = LSM_AUDIT_DATA_NONE;
a->selinux_audit_data = &sad;
}