From 0738886a594c64e31f28b378f78ba53d0b611e7a Mon Sep 17 00:00:00 2001 From: kettenis Date: Tue, 4 Jul 2023 09:00:24 +0000 Subject: [PATCH] Add some extra parenthesis for consistency. stolen from jsing@ --- sys/dev/ic/dwqe.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/dev/ic/dwqe.c b/sys/dev/ic/dwqe.c index 2ecd3e83aa7..15c90859277 100644 --- a/sys/dev/ic/dwqe.c +++ b/sys/dev/ic/dwqe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwqe.c,v 1.8 2023/04/24 01:33:32 dlg Exp $ */ +/* $OpenBSD: dwqe.c,v 1.9 2023/07/04 09:00:24 kettenis Exp $ */ /* * Copyright (c) 2008, 2019 Mark Kettenis * Copyright (c) 2017, 2022 Patrick Wildt @@ -444,7 +444,7 @@ dwqe_mii_readreg(struct device *self, int phy, int reg) int n; dwqe_write(sc, GMAC_MAC_MDIO_ADDR, - sc->sc_clk << GMAC_MAC_MDIO_ADDR_CR_SHIFT | + (sc->sc_clk << GMAC_MAC_MDIO_ADDR_CR_SHIFT) | (phy << GMAC_MAC_MDIO_ADDR_PA_SHIFT) | (reg << GMAC_MAC_MDIO_ADDR_RDA_SHIFT) | GMAC_MAC_MDIO_ADDR_GOC_READ | @@ -468,7 +468,7 @@ dwqe_mii_writereg(struct device *self, int phy, int reg, int val) dwqe_write(sc, GMAC_MAC_MDIO_DATA, val); dwqe_write(sc, GMAC_MAC_MDIO_ADDR, - sc->sc_clk << GMAC_MAC_MDIO_ADDR_CR_SHIFT | + (sc->sc_clk << GMAC_MAC_MDIO_ADDR_CR_SHIFT) | (phy << GMAC_MAC_MDIO_ADDR_PA_SHIFT) | (reg << GMAC_MAC_MDIO_ADDR_RDA_SHIFT) | GMAC_MAC_MDIO_ADDR_GOC_WRITE | @@ -698,7 +698,6 @@ dwqe_rx_proc(struct dwqe_softc *sc) bus_dmamap_sync(sc->sc_dmat, DWQE_DMA_MAP(sc->sc_rxring), 0, DWQE_DMA_LEN(sc->sc_rxring), BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE); - } void -- 2.20.1