Skip to content
Snippets Groups Projects
Commit 0e23bacc authored by Eric Paris's avatar Eric Paris
Browse files

audit: rework AUDIT_TTY_SET to only grab spin_lock once


We can simplify the AUDIT_TTY_SET code to only grab the spin_lock one
time.  We need to determine if the new values are valid and if so, set
the new values at the same time we grab the old onces.  While we are
here get rid of 'res' and just use err.

Signed-off-by: default avatarEric Paris <eparis@redhat.com>
parent 3f0c5fad
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment