linuxkpi: Elimiate brackets on return in spinlock.h
This commit is contained in:
parent
ce65353ac1
commit
c8de6e2015
@ -167,10 +167,10 @@ atomic_dec_and_lock_irqsave(atomic_t *cnt, spinlock_t *lock,
|
||||
{
|
||||
spin_lock_irqsave(lock, flags);
|
||||
if (atomic_dec_and_test(cnt)) {
|
||||
return (1);
|
||||
return 1;
|
||||
}
|
||||
spin_unlock_irqrestore(lock, flags);
|
||||
return (0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* _LINUX_SPINLOCK_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user