]> Pileus Git - ~andy/linux/blobdiff - include/linux/lsm_audit.h
LSM: do not initialize common_audit_data to 0
[~andy/linux] / include / linux / lsm_audit.h
index 75368c1aac78dc567358a759dfafc57711ff2bed..1cc89e9df480cc14c9c7cf5723995c0bea470688 100644 (file)
@@ -92,11 +92,6 @@ int ipv4_skb_to_auditdata(struct sk_buff *skb,
 int ipv6_skb_to_auditdata(struct sk_buff *skb,
                struct common_audit_data *ad, u8 *proto);
 
-/* Initialize an LSM audit data structure. */
-#define COMMON_AUDIT_DATA_INIT(_d, _t) \
-       { memset((_d), 0, sizeof(struct common_audit_data)); \
-        (_d)->type = _t; }
-
 void common_lsm_audit(struct common_audit_data *a,
        void (*pre_audit)(struct audit_buffer *, void *),
        void (*post_audit)(struct audit_buffer *, void *));