audit: replace atomic_add_return()

atomic_inc_return() is a little neater

Signed-off-by: Yejune Deng <yejune.deng@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
Yejune Deng 2020-11-30 16:35:45 +08:00 committed by Paul Moore
parent ba59eae723
commit 6b3211842a

View File

@ -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,