mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 15:11:16 +00:00
tty: audit: Combine push functions
tty_audit_push() and tty_audit_push_current() perform identical tasks; eliminate the tty_audit_push() implementation and the tty_audit_push_current() name. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b50819f437
commit
37282a7795
3 changed files with 6 additions and 39 deletions
|
@ -597,8 +597,7 @@ extern void tty_audit_add_data(struct tty_struct *tty, const void *data,
|
|||
extern void tty_audit_exit(void);
|
||||
extern void tty_audit_fork(struct signal_struct *sig);
|
||||
extern void tty_audit_tiocsti(struct tty_struct *tty, char ch);
|
||||
extern void tty_audit_push(void);
|
||||
extern int tty_audit_push_current(void);
|
||||
extern int tty_audit_push(void);
|
||||
#else
|
||||
static inline void tty_audit_add_data(struct tty_struct *tty, const void *data,
|
||||
size_t size)
|
||||
|
@ -613,10 +612,7 @@ static inline void tty_audit_exit(void)
|
|||
static inline void tty_audit_fork(struct signal_struct *sig)
|
||||
{
|
||||
}
|
||||
static inline void tty_audit_push(void)
|
||||
{
|
||||
}
|
||||
static inline int tty_audit_push_current(void)
|
||||
static inline int tty_audit_push(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue