Commit d8de72473effd674a3c1fe9621821f406f5587c9
Committed by
Al Viro
1 parent
9f0aecdd1c
Exists in
master
and in
39 other branches
[PATCH] remove useless argument type in audit_filter_user()
The second argument "type" is not used in audit_filter_user(), so I think that type can be removed. If I'm wrong, please tell me. Signed-off-by: Peng Haitao <penght@cn.fujitsu.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Showing 3 changed files with 3 additions and 3 deletions Side-by-side Diff
include/linux/audit.h
... | ... | @@ -571,7 +571,7 @@ |
571 | 571 | extern int audit_update_lsm_rules(void); |
572 | 572 | |
573 | 573 | /* Private API (for audit.c only) */ |
574 | -extern int audit_filter_user(struct netlink_skb_parms *cb, int type); | |
574 | +extern int audit_filter_user(struct netlink_skb_parms *cb); | |
575 | 575 | extern int audit_filter_type(int type); |
576 | 576 | extern int audit_receive_filter(int type, int pid, int uid, int seq, |
577 | 577 | void *data, size_t datasz, uid_t loginuid, |
kernel/audit.c
... | ... | @@ -738,7 +738,7 @@ |
738 | 738 | if (!audit_enabled && msg_type != AUDIT_USER_AVC) |
739 | 739 | return 0; |
740 | 740 | |
741 | - err = audit_filter_user(&NETLINK_CB(skb), msg_type); | |
741 | + err = audit_filter_user(&NETLINK_CB(skb)); | |
742 | 742 | if (err == 1) { |
743 | 743 | err = 0; |
744 | 744 | if (msg_type == AUDIT_USER_TTY) { |
kernel/auditfilter.c