Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/spi initialise chuck_rptr as well, instead of chuck_...



details:   https://anonhg.NetBSD.org/src/rev/34ac42ba3ea6
branches:  trunk
changeset: 767072:34ac42ba3ea6
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Jul 08 03:29:15 2011 +0000

description:
initialise chuck_rptr as well, instead of chuck_read twice.

diffstat:

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

diffs (27 lines):

diff -r 12905967df54 -r 34ac42ba3ea6 sys/dev/spi/spi.c
--- a/sys/dev/spi/spi.c Fri Jul 08 03:24:42 2011 +0000
+++ b/sys/dev/spi/spi.c Fri Jul 08 03:29:15 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spi.c,v 1.5 2011/06/08 23:05:48 rmind Exp $ */
+/* $NetBSD: spi.c,v 1.6 2011/07/08 03:29:15 mrg Exp $ */
 
 /*-
  * Copyright (c) 2006 Urbana-Champaign Independent Media Center.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spi.c,v 1.5 2011/06/08 23:05:48 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spi.c,v 1.6 2011/07/08 03:29:15 mrg Exp $");
 
 #include "locators.h"
 
@@ -228,7 +228,7 @@
 {
 
        chunk->chunk_write = chunk->chunk_wptr = wptr;
-       chunk->chunk_read = chunk->chunk_read = rptr;
+       chunk->chunk_read = chunk->chunk_rptr = rptr;
        chunk->chunk_rresid = chunk->chunk_wresid = chunk->chunk_count = cnt;
        chunk->chunk_next = NULL;
 }



Home | Main Index | Thread Index | Old Index