Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi There is an error when we return -1, not < 1.



details:   https://anonhg.NetBSD.org/src/rev/b1f3bf527920
branches:  trunk
changeset: 582567:b1f3bf527920
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jun 30 19:31:53 2005 +0000

description:
There is an error when we return -1, not < 1.

diffstat:

 sys/dev/acpi/acpi.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 32cb813709c2 -r b1f3bf527920 sys/dev/acpi/acpi.c
--- a/sys/dev/acpi/acpi.c       Thu Jun 30 18:45:51 2005 +0000
+++ b/sys/dev/acpi/acpi.c       Thu Jun 30 19:31:53 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi.c,v 1.74 2005/06/21 11:49:10 sekiya Exp $ */
+/*     $NetBSD: acpi.c,v 1.75 2005/06/30 19:31:53 christos Exp $       */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.74 2005/06/21 11:49:10 sekiya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.75 2005/06/30 19:31:53 christos Exp $");
 
 #include "opt_acpi.h"
 #include "opt_pcifixup.h"
@@ -1227,7 +1227,7 @@
                if (ACPI_FAILURE(rv))
                        continue;
                line = acpi_get_intr(link);
-               if (line < 1) {
+               if (line == (uint)-1) {
                        printf("%s: fixing up intr link %s\n",
                            sc->sc_dev.dv_xname, PrtElement->Source);
                        rv = acpi_allocate_resources(link);
@@ -1237,7 +1237,7 @@
                                continue;
                        }
                        line = acpi_get_intr(link);
-                       if (line == -1) {
+                       if (line == (uint)-1) {
                                printf("%s: get intr failed %s\n",
                                    sc->sc_dev.dv_xname, PrtElement->Source);
                                continue;



Home | Main Index | Thread Index | Old Index