Module Name:    src
Committed By:   macallan
Date:           Mon May  4 20:25:48 UTC 2015

Modified Files:
        src/sys/dev/ic: com.c

Log Message:
fix pasto, use SET() and CLR()
thanks jmcneill@


To generate a diff of this commit:
cvs rdiff -u -r1.334 -r1.335 src/sys/dev/ic/com.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/dev/ic/com.c
diff -u src/sys/dev/ic/com.c:1.334 src/sys/dev/ic/com.c:1.335
--- src/sys/dev/ic/com.c:1.334	Sun May  3 17:22:54 2015
+++ src/sys/dev/ic/com.c	Mon May  4 20:25:48 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.334 2015/05/03 17:22:54 jmcneill Exp $ */
+/* $NetBSD: com.c,v 1.335 2015/05/04 20:25:48 macallan Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2004, 2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.334 2015/05/03 17:22:54 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.335 2015/05/04 20:25:48 macallan Exp $");
 
 #include "opt_com.h"
 #include "opt_ddb.h"
@@ -1910,7 +1910,8 @@ com_rxsoft(struct com_softc *sc, struct 
 					SET(sc->sc_ier, IER_ERXTOUT);
 #endif
 				if (sc->sc_type == COM_TYPE_INGENIC)
-					sc->sc_ier |= IER_ERXTOUT;
+					SET(sc->sc_ier, IER_ERXTOUT);
+
 				CSR_WRITE_1(&sc->sc_regs, COM_REG_IER,
 				    sc->sc_ier);
 			}
@@ -2115,7 +2116,8 @@ again:	do {
 				else
 #endif
 				if (sc->sc_type == COM_TYPE_INGENIC)
-					sc->sc_ier |= IER_ERXRDY|IER_ERXTOUT;
+					CLR(sc->sc_ier,
+					    IER_ERXRDY | IER_ERXTOUT);
 				else					
 					CLR(sc->sc_ier, IER_ERXRDY);
 				CSR_WRITE_1(regsp, COM_REG_IER, sc->sc_ier);

Reply via email to