summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-07-15 17:14:05 +0000
committerkib <kib@FreeBSD.org>2015-07-15 17:14:05 +0000
commit22558313d541c66693c47ea93415ba504166cf2f (patch)
tree9dcc5c45c1a0cf506bbe67d8fda106badc7bfaaa
parent0ceb4ab18abe4fab65b1b1a65ce478016ced262b (diff)
downloadFreeBSD-src-22558313d541c66693c47ea93415ba504166cf2f.zip
FreeBSD-src-22558313d541c66693c47ea93415ba504166cf2f.tar.gz
Style. Remove excessive brackets. Compare non-boolean with zero.
Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
-rw-r--r--sys/kern/kern_intr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c
index e509fbc..ffdeec2 100644
--- a/sys/kern/kern_intr.c
+++ b/sys/kern/kern_intr.c
@@ -1346,8 +1346,8 @@ ithread_loop(void *arg)
* set again, so we have to check it again.
*/
thread_lock(td);
- if ((atomic_load_acq_int(&ithd->it_need) == 0) &&
- !(ithd->it_flags & (IT_DEAD | IT_WAIT))) {
+ if (atomic_load_acq_int(&ithd->it_need) == 0 &&
+ (ithd->it_flags & (IT_DEAD | IT_WAIT)) == 0) {
TD_SET_IWAIT(td);
ie->ie_count = 0;
mi_switch(SW_VOL | SWT_IWAIT, NULL);
@@ -1529,8 +1529,8 @@ ithread_loop(void *arg)
* set again, so we have to check it again.
*/
thread_lock(td);
- if ((atomic_load_acq_int(&ithd->it_need) == 0) &&
- !(ithd->it_flags & (IT_DEAD | IT_WAIT))) {
+ if (atomic_load_acq_int(&ithd->it_need) == 0 &&
+ (ithd->it_flags & (IT_DEAD | IT_WAIT)) == 0) {
TD_SET_IWAIT(td);
ie->ie_count = 0;
mi_switch(SW_VOL | SWT_IWAIT, NULL);
OpenPOWER on IntegriCloud