aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeel Chauhan <nc@FreeBSD.org>2021-04-26 15:16:48 +0000
committerNeel Chauhan <nc@FreeBSD.org>2021-04-26 15:16:48 +0000
commitc8de6e20150a3c10575a27532a25b00342a7f452 (patch)
tree5cee82e947801e7b1c65989fb7e7de876e80b49c
parentce65353ac1a17677bef03e96df8da967c9086743 (diff)
downloadsrc-c8de6e20150a3c10575a27532a25b00342a7f452.tar.gz
src-c8de6e20150a3c10575a27532a25b00342a7f452.zip
linuxkpi: Elimiate brackets on return in spinlock.h
-rw-r--r--sys/compat/linuxkpi/common/include/linux/spinlock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/spinlock.h b/sys/compat/linuxkpi/common/include/linux/spinlock.h
index 7ef474b671dc..1ad8f8ff1aad 100644
--- a/sys/compat/linuxkpi/common/include/linux/spinlock.h
+++ b/sys/compat/linuxkpi/common/include/linux/spinlock.h
@@ -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_ */