-/* $OpenBSD: sxipio.c,v 1.5 2013/11/06 19:03:07 syl Exp $ */
+/* $OpenBSD: sxipio.c,v 1.6 2015/05/04 03:59:42 jsg Exp $ */
/*
* Copyright (c) 2010 Miodrag Vallat.
* Copyright (c) 2013 Artturi Alm
sc->sc_gpio_pins[port][pin].pin_state =
sxipio_getpin((port * 32) + pin);
sc->sc_gpio_pins[port][pin].pin_flags = GPIO_PIN_SET |
- cfg ? GPIO_PIN_OUTPUT : GPIO_PIN_INPUT;
+ (cfg ? GPIO_PIN_OUTPUT : GPIO_PIN_INPUT);
} else {
/* disable control of taken over pins */
sc->sc_gpio_pins[port][pin].pin_caps = 0;
-/* $OpenBSD: if_dc_cardbus.c,v 1.37 2015/03/14 03:38:47 jsg Exp $ */
+/* $OpenBSD: if_dc_cardbus.c,v 1.38 2015/05/04 03:59:42 jsg Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
/* wakeup the card if needed */
reg = pci_conf_read(pc, csc->sc_tag, PCI_CFDA);
- if (reg | (DC_CFDA_SUSPEND|DC_CFDA_STANDBY)) {
+ if (reg & (DC_CFDA_SUSPEND|DC_CFDA_STANDBY)) {
pci_conf_write(pc, csc->sc_tag, PCI_CFDA,
reg & ~(DC_CFDA_SUSPEND|DC_CFDA_STANDBY));
}
-/* $OpenBSD: mpi.c,v 1.200 2015/03/14 03:38:47 jsg Exp $ */
+/* $OpenBSD: mpi.c,v 1.201 2015/05/04 03:59:42 jsg Exp $ */
/*
* Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org>
error = bus_dmamap_load(sc->sc_dmat, dmap,
xs->data, xs->datalen, NULL, BUS_DMA_STREAMING |
- (xs->flags & SCSI_NOSLEEP) ? BUS_DMA_NOWAIT : BUS_DMA_WAITOK);
+ ((xs->flags & SCSI_NOSLEEP) ? BUS_DMA_NOWAIT : BUS_DMA_WAITOK));
if (error) {
printf("%s: error %d loading dmamap\n", DEVNAME(sc), error);
return (1);