Dimitry Andric 7d8a4eb943 tty_info: Avoid warning by using logical instead of bitwise operators
Since TD_IS_RUNNING() and TS_ON_RUNQ() are defined as logical
expressions involving '==', clang 14 warns about them being checked with
a bitwise operator instead of a logical one:

```
sys/kern/tty_info.c:124:9: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
        runa = TD_IS_RUNNING(td) | TD_ON_RUNQ(td);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                 ||
sys/sys/proc.h:562:27: note: expanded from macro 'TD_IS_RUNNING'
                                ^
sys/kern/tty_info.c:124:9: note: cast one or both operands to int to silence this warning
sys/sys/proc.h:562:27: note: expanded from macro 'TD_IS_RUNNING'
                                ^
sys/kern/tty_info.c:129:9: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
        runb = TD_IS_RUNNING(td2) | TD_ON_RUNQ(td2);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                  ||
sys/sys/proc.h:562:27: note: expanded from macro 'TD_IS_RUNNING'
                                ^
sys/kern/tty_info.c:129:9: note: cast one or both operands to int to silence this warning
sys/sys/proc.h:562:27: note: expanded from macro 'TD_IS_RUNNING'
                                ^
```

Fix this by using logical operators instead. No functional change
intended.

Reviewed by:	cem, emaste, kevans, markj
MFC after:	3 days
Differential Revision: https://reviews.freebsd.org/D34186
2022-02-08 21:21:04 +01:00
..
2022-01-27 11:40:34 +00:00
2022-01-27 11:40:34 +00:00
2021-06-07 16:45:50 -04:00
2020-11-19 02:50:48 +00:00
2022-01-26 13:40:27 -06:00
2021-11-29 22:04:43 +00:00
2021-12-28 13:51:25 -08:00
2021-09-09 10:11:02 -04:00
2021-04-18 11:19:15 -06:00
2021-11-10 21:18:54 +02:00
2020-11-05 15:08:56 +00:00
2021-09-14 14:29:27 -04:00
2021-08-08 21:54:49 -04:00
2021-12-14 14:52:25 +00:00
2020-11-09 00:34:23 +00:00
2021-04-02 15:41:51 +03:00
2021-12-09 02:49:10 +02:00
2021-12-09 02:49:10 +02:00
2021-04-18 11:14:17 -06:00
2021-09-03 22:18:51 -04:00
2021-11-17 20:12:26 +00:00
2022-02-01 06:54:50 +02:00
2022-01-08 05:41:44 +02:00