From 81fe50d2ffd47643bbe8a12e4a87e88aeac91495 Mon Sep 17 00:00:00 2001 From: kib Date: Thu, 3 Jan 2019 01:01:03 +0000 Subject: [PATCH] Fix typo, use boolean operator instead of bit-wise. Reviewed by: marius, shurd MFC after: 3 days Sponsored by: The FreeBSD Foundation --- sys/net/iflib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/iflib.c b/sys/net/iflib.c index 11b5d6bed4b3..6f6c0cfcf552 100644 --- a/sys/net/iflib.c +++ b/sys/net/iflib.c @@ -1617,7 +1617,7 @@ iflib_txsd_alloc(iflib_txq_t txq) (uintmax_t)sctx->isc_tx_maxsize, nsegments, (uintmax_t)sctx->isc_tx_maxsegsize); goto fail; } - if ((if_getcapabilities(ctx->ifc_ifp) & IFCAP_TSO) & + if ((if_getcapabilities(ctx->ifc_ifp) & IFCAP_TSO) && (err = bus_dma_tag_create(bus_get_dma_tag(dev), 1, 0, /* alignment, bounds */ BUS_SPACE_MAXADDR, /* lowaddr */