Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/atheros Remove a dead branch. Could look like ...



details:   https://anonhg.NetBSD.org/src/rev/dc280c7a53a7
branches:  trunk
changeset: 809288:dc280c7a53a7
user:      maxv <maxv%NetBSD.org@localhost>
date:      Mon Jun 29 16:36:17 2015 +0000

description:
Remove a dead branch. Could look like a memory leak, but ih cannot be
NULL.

Found by Brainy.

diffstat:

 sys/arch/mips/atheros/ar_intr.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r 675260ac45d3 -r dc280c7a53a7 sys/arch/mips/atheros/ar_intr.c
--- a/sys/arch/mips/atheros/ar_intr.c   Mon Jun 29 16:25:49 2015 +0000
+++ b/sys/arch/mips/atheros/ar_intr.c   Mon Jun 29 16:36:17 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ar_intr.c,v 1.4 2015/06/09 22:50:50 matt Exp $ */
+/* $NetBSD: ar_intr.c,v 1.5 2015/06/29 16:36:17 maxv Exp $ */
 /*
  * Copyright (c) 2006 Urbana-Champaign Independent Media Center.
  * Copyright (c) 2006 Garrett D'Amore.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ar_intr.c,v 1.4 2015/06/09 22:50:50 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ar_intr.c,v 1.5 2015/06/29 16:36:17 maxv Exp $");
 
 #define __INTR_PRIVATE
 
@@ -117,9 +117,6 @@
        ih->ih_arg = arg;
        ih->ih_irq = intr;
 
-       if (ih == NULL)
-               return NULL;
-
        const int s = splhigh();
 
        LIST_INSERT_HEAD(&cpu_intrs[intr].intr_qh, ih, ih_q);



Home | Main Index | Thread Index | Old Index