Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Fix reversed if condition in agp_i810_vgamatch.



details:   https://anonhg.NetBSD.org/src/rev/1c07067467e3
branches:  trunk
changeset: 514777:1c07067467e3
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Mon Sep 10 12:51:42 2001 +0000

description:
Fix reversed if condition in agp_i810_vgamatch.

diffstat:

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

diffs (20 lines):

diff -r 72e12720730e -r 1c07067467e3 sys/dev/pci/agp_i810.c
--- a/sys/dev/pci/agp_i810.c    Mon Sep 10 12:33:25 2001 +0000
+++ b/sys/dev/pci/agp_i810.c    Mon Sep 10 12:51:42 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: agp_i810.c,v 1.1 2001/09/10 10:01:01 fvdl Exp $        */
+/*     $NetBSD: agp_i810.c,v 1.2 2001/09/10 12:51:42 fvdl Exp $        */
 
 /*-
  * Copyright (c) 2000 Doug Rabson
@@ -90,8 +90,8 @@
 static int
 agp_i810_vgamatch(struct pci_attach_args *pa)
 {
-       if (PCI_CLASS(pa->pa_class) == PCI_CLASS_DISPLAY &&
-           PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_DISPLAY_VGA)
+       if (PCI_CLASS(pa->pa_class) != PCI_CLASS_DISPLAY ||
+           PCI_SUBCLASS(pa->pa_class) != PCI_SUBCLASS_DISPLAY_VGA)
                return 0;
        switch (PCI_PRODUCT(pa->pa_id)) {
        case PCI_PRODUCT_INTEL_82810_GC:



Home | Main Index | Thread Index | Old Index