From: patrick Date: Wed, 24 Jan 2018 13:04:22 +0000 (+0000) Subject: We don't do booleans in the kernel, so replace a few occurrences of 'true' X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=de91928149e4d56239224d31b8ca4ce521798faa;p=openbsd We don't do booleans in the kernel, so replace a few occurrences of 'true' with nicer integer equivalents. Spotted by and ok stsp@ --- diff --git a/sys/dev/ic/bwfm.c b/sys/dev/ic/bwfm.c index 15de18146ac..b502982fa4f 100644 --- a/sys/dev/ic/bwfm.c +++ b/sys/dev/ic/bwfm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bwfm.c,v 1.30 2018/01/11 19:33:34 patrick Exp $ */ +/* $OpenBSD: bwfm.c,v 1.31 2018/01/24 13:04:22 patrick Exp $ */ /* * Copyright (c) 2010-2016 Broadcom Corporation * Copyright (c) 2016,2017 Patrick Wildt @@ -601,14 +601,14 @@ bwfm_chip_attach(struct bwfm_softc *sc) switch (core->co_id) { case BWFM_AGENT_CORE_ARM_CM3: - need_socram = true; + need_socram = 1; /* FALLTHROUGH */ case BWFM_AGENT_CORE_ARM_CR4: case BWFM_AGENT_CORE_ARM_CA7: - cpu_found = true; + cpu_found = 1; break; case BWFM_AGENT_INTERNAL_MEM: - has_socram = true; + has_socram = 1; break; default: break;