Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc64/dev Fix typo in KASSERT, pointed out by ria...



details:   https://anonhg.NetBSD.org/src/rev/21190049f283
branches:  trunk
changeset: 784299:21190049f283
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Thu Jan 24 11:06:20 2013 +0000

description:
Fix typo in KASSERT, pointed out by riastradh@ and martin@.

diffstat:

 sys/arch/sparc64/dev/lom.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 06b2d9e284de -r 21190049f283 sys/arch/sparc64/dev/lom.c
--- a/sys/arch/sparc64/dev/lom.c        Thu Jan 24 10:41:28 2013 +0000
+++ b/sys/arch/sparc64/dev/lom.c        Thu Jan 24 11:06:20 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lom.c,v 1.10 2012/06/02 21:36:42 dsl Exp $     */
+/*     $NetBSD: lom.c,v 1.11 2013/01/24 11:06:20 nakayama Exp $        */
 /*     $OpenBSD: lom.c,v 1.21 2010/02/28 20:44:39 kettenis Exp $       */
 /*
  * Copyright (c) 2009 Mark Kettenis
@@ -17,7 +17,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lom.c,v 1.10 2012/06/02 21:36:42 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lom.c,v 1.11 2013/01/24 11:06:20 nakayama Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -857,7 +857,7 @@
                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);



Home | Main Index | Thread Index | Old Index