diff options
author | Eric Paris <eparis@redhat.com> | 2014-04-02 15:46:42 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-04-02 15:55:14 -0400 |
commit | 56c4911aedbecc2bdf7940073e85d52b691e2509 (patch) | |
tree | 9ed0b82db582b46ef951759354f8befb9ad5dc80 /kernel | |
parent | 543bc6a1a987672b79d6ebe8e2ab10471d8f1047 (diff) |
audit: do not cast audit_rule_data pointers pointlesly
For some sort of legacy support audit_rule is a subset of (and first
entry in) audit_rule_data. We don't actually need or use audit_rule.
We just do a cast from one to the other for no gain what so ever. Stop
the crazy casting.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/auditfilter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c index 96c8a704f130..70101e0b184a 100644 --- a/kernel/auditfilter.c +++ b/kernel/auditfilter.c | |||
@@ -228,7 +228,7 @@ static int audit_match_signal(struct audit_entry *entry) | |||
228 | #endif | 228 | #endif |
229 | 229 | ||
230 | /* Common user-space to kernel rule translation. */ | 230 | /* Common user-space to kernel rule translation. */ |
231 | static inline struct audit_entry *audit_to_entry_common(struct audit_rule *rule) | 231 | static inline struct audit_entry *audit_to_entry_common(struct audit_rule_data *rule) |
232 | { | 232 | { |
233 | unsigned listnr; | 233 | unsigned listnr; |
234 | struct audit_entry *entry; | 234 | struct audit_entry *entry; |
@@ -405,7 +405,7 @@ static struct audit_entry *audit_data_to_entry(struct audit_rule_data *data, | |||
405 | int i; | 405 | int i; |
406 | char *str; | 406 | char *str; |
407 | 407 | ||
408 | entry = audit_to_entry_common((struct audit_rule *)data); | 408 | entry = audit_to_entry_common(data); |
409 | if (IS_ERR(entry)) | 409 | if (IS_ERR(entry)) |
410 | goto exit_nofree; | 410 | goto exit_nofree; |
411 | 411 | ||