tty_audit: invert the condition in tty_audit_log()
authorJiri Slaby <jirislaby@kernel.org>
Wed, 21 Jun 2023 10:16:08 +0000 (12:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 15:57:29 +0000 (17:57 +0200)
commit94f94810efc4b4b337c9f2abc8b0188cef5ccb9b
tree9c5577fff2eab47685308d0a70b809dce3c35c77
parente1488513abee9f34a7d0f3bd57ee65d2a7e13426
tty_audit: invert the condition in tty_audit_log()

If we cannot obtain an audit buffer in tty_audit_log(), simply return
from the function. Apart this is mostly preferred in the kernel, it
allows to merge the split audit string while still keeping it readable.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230621101611.10580-4-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_audit.c