From 233e4a47670219cf433e2e5f1428f780ae5d3d59 Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Thu, 5 Oct 2017 22:40:09 +0000 Subject: Check the state value within the assert statement, do not set it. found with grep 'KASSERT.* = '; OK kettenis@ --- sys/arch/sparc64/dev/lom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/sparc64') diff --git a/sys/arch/sparc64/dev/lom.c b/sys/arch/sparc64/dev/lom.c index e55a501b9a6..f5803f9c720 100644 --- a/sys/arch/sparc64/dev/lom.c +++ b/sys/arch/sparc64/dev/lom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lom.c,v 1.25 2014/12/10 12:27:57 mikeb Exp $ */ +/* $OpenBSD: lom.c,v 1.26 2017/10/05 22:40:08 bluhm Exp $ */ /* * Copyright (c) 2009 Mark Kettenis * @@ -788,7 +788,7 @@ lom2_intr(void *arg) return (1); } - KASSERT(sc->sc_state = LOM_STATE_DATA); + KASSERT(sc->sc_state == LOM_STATE_DATA); lc->lc_data = obr; TAILQ_REMOVE(&sc->sc_queue, lc, lc_next); -- cgit v1.2.3