Commit 6b321184 authored by Yejune Deng's avatar Yejune Deng Committed by Paul Moore

audit: replace atomic_add_return()

atomic_inc_return() is a little neater
Signed-off-by: default avatarYejune Deng <yejune.deng@gmail.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent ba59eae7
......@@ -1779,7 +1779,7 @@ unsigned int audit_serial(void)
{
static atomic_t serial = ATOMIC_INIT(0);
return atomic_add_return(1, &serial);
return atomic_inc_return(&serial);
}
static inline void audit_get_stamp(struct audit_context *ctx,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment