Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/emips/ebus PR/50525: David Binderman: Fix incorrect...



details:   https://anonhg.NetBSD.org/src/rev/0e2e3eda946a
branches:  trunk
changeset: 342253:0e2e3eda946a
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Dec 13 19:36:40 2015 +0000

description:
PR/50525: David Binderman: Fix incorrect test.

diffstat:

 sys/arch/emips/ebus/flash_ebus.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 31d4871bc707 -r 0e2e3eda946a sys/arch/emips/ebus/flash_ebus.c
--- a/sys/arch/emips/ebus/flash_ebus.c  Sun Dec 13 19:18:32 2015 +0000
+++ b/sys/arch/emips/ebus/flash_ebus.c  Sun Dec 13 19:36:40 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: flash_ebus.c,v 1.17 2015/04/26 15:15:19 mlelstv Exp $  */
+/*     $NetBSD: flash_ebus.c,v 1.18 2015/12/13 19:36:40 christos Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: flash_ebus.c,v 1.17 2015/04/26 15:15:19 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: flash_ebus.c,v 1.18 2015/12/13 19:36:40 christos Exp $");
 
 /* Driver for the Intel 28F320/640/128 (J3A150) StrataFlash memory device
  * Extended to include the Intel JS28F256P30T95.
@@ -603,7 +603,7 @@
     if (Status & ST_READY)
         return FALSE;
 
-    if ((Status & ST_ERASE_MASK) == 
+    if ((Status & ST_MASK) == 
         (ST_LOCK_BIT_ERROR|ST_ERASE_SUSPENDED|ST_ERASE_ERROR)) {
         /* yes, looks that way */
         return TRUE;



Home | Main Index | Thread Index | Old Index