Module Name: src
Committed By: maxv
Date: Mon Jun 29 16:36:17 UTC 2015
Modified Files:
src/sys/arch/mips/atheros: ar_intr.c
Log Message:
Remove a dead branch. Could look like a memory leak, but ih cannot be
NULL.
Found by Brainy.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/mips/atheros/ar_intr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/mips/atheros/ar_intr.c
diff -u src/sys/arch/mips/atheros/ar_intr.c:1.4 src/sys/arch/mips/atheros/ar_intr.c:1.5
--- src/sys/arch/mips/atheros/ar_intr.c:1.4 Tue Jun 9 22:50:50 2015
+++ src/sys/arch/mips/atheros/ar_intr.c Mon Jun 29 16:36:17 2015
@@ -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 @@ genath_cpu_intr_establish(int intr, int
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);