Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/booke/pci pq3pci_msi_claim(): remove KASSER...



details:   https://anonhg.NetBSD.org/src/rev/d4154b733d8f
branches:  trunk
changeset: 1016214:d4154b733d8f
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Nov 12 00:44:22 2020 +0000

description:
pq3pci_msi_claim(): remove KASSERT that is valid when allocating MSI
vectors, while apparently invalid when freeing them.

diffstat:

 sys/arch/powerpc/booke/pci/pq3pci.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 691922be0fd0 -r d4154b733d8f sys/arch/powerpc/booke/pci/pq3pci.c
--- a/sys/arch/powerpc/booke/pci/pq3pci.c       Thu Nov 12 00:40:55 2020 +0000
+++ b/sys/arch/powerpc/booke/pci/pq3pci.c       Thu Nov 12 00:44:22 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pq3pci.c,v 1.26 2020/11/12 00:37:51 rin Exp $  */
+/*     $NetBSD: pq3pci.c,v 1.27 2020/11/12 00:44:22 rin Exp $  */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -39,7 +39,7 @@
 #define        __INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pq3pci.c,v 1.26 2020/11/12 00:37:51 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pq3pci.c,v 1.27 2020/11/12 00:44:22 rin Exp $");
 
 #include "locators.h"
 
@@ -1196,7 +1196,6 @@
        KASSERT(msig != NULL);
        struct pq3pci_msihand * const msih = &msig->msig_ihands[irq & 31];
        mutex_spin_enter(&msig->msig_lock);
-       KASSERT(msig->msig_free_mask & irq_mask);
        msig->msig_free_mask ^= irq_mask;
        mutex_spin_exit(&msig->msig_lock);
        return msih;



Home | Main Index | Thread Index | Old Index