Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Don't return success when hw is not ready.



details:   https://anonhg.NetBSD.org/src/rev/d0717b53a0a8
branches:  trunk
changeset: 806375:d0717b53a0a8
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Fri Feb 20 15:03:53 2015 +0000

description:
Don't return success when hw is not ready.

diffstat:

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

diffs (27 lines):

diff -r d8851fd0e081 -r d0717b53a0a8 sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c      Fri Feb 20 14:50:53 2015 +0000
+++ b/sys/dev/pci/if_iwm.c      Fri Feb 20 15:03:53 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_iwm.c,v 1.9 2015/02/17 09:18:45 nonaka Exp $        */
+/*     $NetBSD: if_iwm.c,v 1.10 2015/02/20 15:03:53 nonaka Exp $       */
 /*     OpenBSD: if_iwm.c,v 1.18 2015/02/11 01:12:42 brad Exp   */
 
 /*
@@ -105,7 +105,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.9 2015/02/17 09:18:45 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.10 2015/02/20 15:03:53 nonaka Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -1389,7 +1389,7 @@
        int rv = 0;
        int t = 0;
 
-       if (!iwm_set_hw_ready(sc))
+       if (iwm_set_hw_ready(sc))
                goto out;
 
        /* If HW is not ready, prepare the conditions to check again */



Home | Main Index | Thread Index | Old Index