]> git.baikalelectronics.ru Git - kernel.git/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)
commitd31d9f4d3443da51ee21f6b418eda62eb3bfd0b5
treefd0af9304f1b7dfb898a1c4dba706fd8c780a0b0
parenta0d9ef87632a6dae9db630d0ac1404d39ed06920
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