]> Pileus Git - ~andy/linux/commit
audit: wait_for_auditd rework for readability
authorEric Paris <eparis@redhat.com>
Mon, 13 Jan 2014 20:42:16 +0000 (15:42 -0500)
committerEric Paris <eparis@redhat.com>
Tue, 14 Jan 2014 03:33:27 +0000 (22:33 -0500)
commitc81825dd6b2ab9dcbdbc5b3ae12cc724c550341d
treefd0af9304f1b7dfb898a1c4dba706fd8c780a0b0
parent8c8115faca28c7118e2a5b0153998710ea3e01c4
audit: wait_for_auditd rework for readability

We had some craziness with signed to unsigned long casting which appears
wholely unnecessary.  Just use signed long.  Even though 2 values of the
math equation are unsigned longs the result is expected to be a signed
long.  So why keep casting the result to signed long?  Just make it
signed long and use it.

We also remove the needless "timeout" variable.  We already have the
stack "sleep_time" variable.  Just use that...

Signed-off-by: Eric Paris <eparis@redhat.com>
kernel/audit.c