diff options
author | 2013-11-26 20:33:07 +0000 | |
---|---|---|
committer | 2013-11-26 20:33:07 +0000 | |
commit | 61e87b287a539c46ee129ad6d615d9c8e7dcd1ae (patch) | |
tree | 1aa0db7f8edc860bdbbc773c17a2f55063404fd4 /sys/dev/pci/tcpcib.c | |
parent | /etc/nsd.conf -> /var/nsd/etc/nsd.conf (diff) | |
download | wireguard-openbsd-61e87b287a539c46ee129ad6d615d9c8e7dcd1ae.tar.xz wireguard-openbsd-61e87b287a539c46ee129ad6d615d9c8e7dcd1ae.zip |
1 << 31 cleanup. Eitan Adler pointed out that there has been a
resurrection of the bad idiom in the tree.
sufficient review by miod, kettenis, tedu
Diffstat (limited to 'sys/dev/pci/tcpcib.c')
-rw-r--r-- | sys/dev/pci/tcpcib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/tcpcib.c b/sys/dev/pci/tcpcib.c index 0b6f93d56a3..5f1be2ec10c 100644 --- a/sys/dev/pci/tcpcib.c +++ b/sys/dev/pci/tcpcib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcpcib.c,v 1.5 2013/05/30 16:15:02 deraadt Exp $ */ +/* $OpenBSD: tcpcib.c,v 1.6 2013/11/26 20:33:17 deraadt Exp $ */ /* * Copyright (c) 2012 Matt Dainty <matt@bodgit-n-scarper.com> @@ -220,7 +220,7 @@ tcpcib_attach(struct device *parent, struct device *self, void *aux) reg = pci_conf_read(pa->pa_pc, pa->pa_tag, E600_LPC_WDTBA); wdtbase = reg & 0xffff; sc->sc_wdt_iot = pa->pa_iot; - if (reg & (1 << 31) && wdtbase) { + if (reg & (1U << 31) && wdtbase) { if (PCI_MAPREG_IO_ADDR(wdtbase) == 0 || bus_space_map(sc->sc_wdt_iot, PCI_MAPREG_IO_ADDR(wdtbase), E600_WDT_SIZE, 0, &sc->sc_wdt_ioh)) { |