Module Name: src
Committed By: mrg
Date: Thu Aug 3 08:31:06 UTC 2023
Modified Files:
src/sys/arch/sgimips/mace: mace.c
Log Message:
check a pointer's value not the address of a pointer.
found by GCC 12.
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/sgimips/mace/mace.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/sgimips/mace/mace.c
diff -u src/sys/arch/sgimips/mace/mace.c:1.25 src/sys/arch/sgimips/mace/mace.c:1.26
--- src/sys/arch/sgimips/mace/mace.c:1.25 Sat Aug 7 16:19:04 2021
+++ src/sys/arch/sgimips/mace/mace.c Thu Aug 3 08:31:06 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: mace.c,v 1.25 2021/08/07 16:19:04 thorpej Exp $ */
+/* $NetBSD: mace.c,v 1.26 2023/08/03 08:31:06 mrg Exp $ */
/*
* Copyright (c) 2003 Christopher Sekiya
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mace.c,v 1.25 2021/08/07 16:19:04 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mace.c,v 1.26 2023/08/03 08:31:06 mrg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -302,7 +302,7 @@ mace_intr_disestablish(void *cookie)
/* do not do an unmask when irq is shared. */
for (i = 0; i < MACE_NINTR; i++)
- if (&maceintrtab[i].func != NULL && maceintrtab[i].irq == irq)
+ if (maceintrtab[i].func != NULL && maceintrtab[i].irq == irq)
break;
if (i == MACE_NINTR)
crime_intr_unmask(intr);