linuxkpi: Remove unneeded {} in atomic_dec_and_lock_irqsave()

This commit is contained in:
Neel Chauhan 2021-04-26 08:25:33 -07:00
parent c8de6e2015
commit e657f3de6d

View File

@ -166,9 +166,8 @@ atomic_dec_and_lock_irqsave(atomic_t *cnt, spinlock_t *lock,
unsigned long flags)
{
spin_lock_irqsave(lock, flags);
if (atomic_dec_and_test(cnt)) {
if (atomic_dec_and_test(cnt))
return 1;
}
spin_unlock_irqrestore(lock, flags);
return 0;
}