Use FreeBSD-bit-checking-style
This appease gcc 4.9 issuing warnings about parentheses Differential Revision: https://reviews.freebsd.org/D933 Reviewed by: marius
This commit is contained in:
parent
0ca2fdeca2
commit
277c7d7b98
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=272894
@ -77,7 +77,7 @@ mc146818_attach(device_t dev)
|
||||
}
|
||||
|
||||
mtx_lock_spin(&sc->sc_mtx);
|
||||
if (!(*sc->sc_mcread)(dev, MC_REGD) & MC_REGD_VRT) {
|
||||
if (((*sc->sc_mcread)(dev, MC_REGD) & MC_REGD_VRT) == 0) {
|
||||
mtx_unlock_spin(&sc->sc_mtx);
|
||||
device_printf(dev, "%s: battery low\n", __func__);
|
||||
return (ENXIO);
|
||||
@ -118,7 +118,7 @@ mc146818_gettime(device_t dev, struct timespec *ts)
|
||||
*/
|
||||
for (;;) {
|
||||
mtx_lock_spin(&sc->sc_mtx);
|
||||
if (!((*sc->sc_mcread)(dev, MC_REGA) & MC_REGA_UIP))
|
||||
if (((*sc->sc_mcread)(dev, MC_REGA) & MC_REGA_UIP) == 0)
|
||||
break;
|
||||
mtx_unlock_spin(&sc->sc_mtx);
|
||||
if (--timeout < 0) {
|
||||
@ -164,7 +164,7 @@ mc146818_getsecs(device_t dev, int *secp)
|
||||
|
||||
for (;;) {
|
||||
mtx_lock_spin(&sc->sc_mtx);
|
||||
if (!((*sc->sc_mcread)(dev, MC_REGA) & MC_REGA_UIP)) {
|
||||
if (((*sc->sc_mcread)(dev, MC_REGA) & MC_REGA_UIP) == 0) {
|
||||
sec = FROMREG((*sc->sc_mcread)(dev, MC_SEC));
|
||||
mtx_unlock_spin(&sc->sc_mtx);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user