svn commit: r285606 - head/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Wed Jul 15 17:14:06 UTC 2015
Author: kib
Date: Wed Jul 15 17:14:05 2015
New Revision: 285606
URL: https://svnweb.freebsd.org/changeset/base/285606
Log:
Style. Remove excessive brackets. Compare non-boolean with zero.
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Modified:
head/sys/kern/kern_intr.c
Modified: head/sys/kern/kern_intr.c
==============================================================================
--- head/sys/kern/kern_intr.c Wed Jul 15 16:57:40 2015 (r285605)
+++ head/sys/kern/kern_intr.c Wed Jul 15 17:14:05 2015 (r285606)
@@ -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);
More information about the svn-src-all
mailing list