Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/dkwedge dk(4): Fix typo: sc_state, not sc_satte.



details:   https://anonhg.NetBSD.org/src/rev/cb5bee737d90
branches:  trunk
changeset: 374652:cb5bee737d90
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue May 09 13:14:14 2023 +0000

description:
dk(4): Fix typo: sc_state, not sc_satte.

Had tested a patch series, but not every patch in it, and I
inadvertently fixed the typo in a later patch in the series, not in
the one I committed.

diffstat:

 sys/dev/dkwedge/dk.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0cedb9197c6e -r cb5bee737d90 sys/dev/dkwedge/dk.c
--- a/sys/dev/dkwedge/dk.c      Tue May 09 13:07:43 2023 +0000
+++ b/sys/dev/dkwedge/dk.c      Tue May 09 13:14:14 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dk.c,v 1.155 2023/05/09 12:49:00 riastradh Exp $       */
+/*     $NetBSD: dk.c,v 1.156 2023/05/09 13:14:14 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2004, 2005, 2006, 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.155 2023/05/09 12:49:00 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.156 2023/05/09 13:14:14 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_dkwedge.h"
@@ -1369,7 +1369,7 @@ dkclose(dev_t dev, int flags, int fmt, s
        if (sc == NULL)
                return ENXIO;
        if (sc->sc_state != DKW_STATE_RUNNING &&
-           sc->sc_satte != DKW_STATE_DYING)
+           sc->sc_state != DKW_STATE_DYING)
                return ENXIO;
 
        mutex_enter(&sc->sc_dk.dk_openlock);



Home | Main Index | Thread Index | Old Index