summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2017-10-05 22:40:09 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2017-10-05 22:40:09 +0000
commit233e4a47670219cf433e2e5f1428f780ae5d3d59 (patch)
tree41011d17d2aa2d30d996a8bb690ba243495a85cc /sys/arch/sparc64
parenta23278eaa490e6613e528137eb2541d97680c2e5 (diff)
Check the state value within the assert statement, do not set it.
found with grep 'KASSERT.* = '; OK kettenis@
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/dev/lom.c4
1 files changed, 2 insertions, 2 deletions
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);