mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
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:
parent
ba59eae723
commit
6b3211842a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user