Module Name:    src
Committed By:   flxd
Date:           Mon Jan 22 18:15:57 UTC 2018

Modified Files:
        src/sys/arch/mips/mips: bus_space_alignstride_chipdep.c

Log Message:
Use right variable as revealed by previous typo...


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 \
    src/sys/arch/mips/mips/bus_space_alignstride_chipdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/mips/bus_space_alignstride_chipdep.c
diff -u src/sys/arch/mips/mips/bus_space_alignstride_chipdep.c:1.30 src/sys/arch/mips/mips/bus_space_alignstride_chipdep.c:1.31
--- src/sys/arch/mips/mips/bus_space_alignstride_chipdep.c:1.30	Sun Jan 21 16:38:25 2018
+++ src/sys/arch/mips/mips/bus_space_alignstride_chipdep.c	Mon Jan 22 18:15:56 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_space_alignstride_chipdep.c,v 1.30 2018/01/21 16:38:25 flxd Exp $ */
+/* $NetBSD: bus_space_alignstride_chipdep.c,v 1.31 2018/01/22 18:15:56 flxd Exp $ */
 
 /*-
  * Copyright (c) 1998, 2000, 2001 The NetBSD Foundation, Inc.
@@ -86,7 +86,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_space_alignstride_chipdep.c,v 1.30 2018/01/21 16:38:25 flxd Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_space_alignstride_chipdep.c,v 1.31 2018/01/22 18:15:56 flxd Exp $");
 
 #ifdef CHIP_EXTENT
 #include <sys/extent.h>
@@ -842,9 +842,9 @@ __BS(write_2)(void *v, bus_space_handle_
 	h &= ~((bus_space_handle_t)(CHIP_ACCESS_SIZE - 1));
 	CHIP_TYPE cval = ((CHIP_TYPE)CHIP_SWAP16(val)) << shift;
 # if CHIP_ACCESS_SIZE == 8
-	mips3_sd(h, val);
+	mips3_sd(h, cval);
 # else
-	mips_sw(h, val);
+	mips_sw(h, cval);
 # endif
 #endif
 }

Reply via email to