From: jsg Date: Tue, 20 Aug 2024 05:36:38 +0000 (+0000) Subject: add (), | has higher precedence than ?: X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c476ff4431c12d057770ced90efeea85a2b30bc2;p=openbsd add (), | has higher precedence than ?: ok mglocker@ --- diff --git a/sys/dev/ic/ufshci.c b/sys/dev/ic/ufshci.c index ef30e01fc29..6293c725c81 100644 --- a/sys/dev/ic/ufshci.c +++ b/sys/dev/ic/ufshci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ufshci.c,v 1.39 2024/06/27 21:35:34 mglocker Exp $ */ +/* $OpenBSD: ufshci.c,v 1.40 2024/08/20 05:36:38 jsg Exp $ */ /* * Copyright (c) 2022 Marcus Glocker @@ -347,7 +347,7 @@ ufshci_dmamem_alloc(struct ufshci_softc *sc, size_t size) if (bus_dmamap_create(sc->sc_dmat, size, 1, size, 0, BUS_DMA_WAITOK | BUS_DMA_ALLOCNOW | - (sc->sc_cap & UFSHCI_REG_CAP_64AS) ? BUS_DMA_64BIT : 0, + ((sc->sc_cap & UFSHCI_REG_CAP_64AS) ? BUS_DMA_64BIT : 0), &udm->udm_map) != 0) goto udmfree; @@ -1428,7 +1428,7 @@ ufshci_ccb_alloc(struct ufshci_softc *sc, int nccbs) if (bus_dmamap_create(sc->sc_dmat, UFSHCI_UCD_PRDT_MAX_XFER, UFSHCI_UCD_PRDT_MAX_SEGS, UFSHCI_UCD_PRDT_MAX_XFER, 0, BUS_DMA_WAITOK | BUS_DMA_ALLOCNOW | - (sc->sc_cap & UFSHCI_REG_CAP_64AS) ? BUS_DMA_64BIT : 0, + ((sc->sc_cap & UFSHCI_REG_CAP_64AS) ? BUS_DMA_64BIT : 0), &ccb->ccb_dmamap) != 0) goto free_maps;