Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Correct NULL abuse.
details: https://anonhg.NetBSD.org/src/rev/83912295edf2
branches: trunk
changeset: 553733:83912295edf2
user: fvdl <fvdl%NetBSD.org@localhost>
date: Tue Oct 21 00:57:47 2003 +0000
description:
Correct NULL abuse.
diffstat:
sys/dev/ic/adwlib.c | 6 +++---
sys/dev/ic/adwmcode.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r deb61c195e12 -r 83912295edf2 sys/dev/ic/adwlib.c
--- a/sys/dev/ic/adwlib.c Tue Oct 21 00:55:05 2003 +0000
+++ b/sys/dev/ic/adwlib.c Tue Oct 21 00:57:47 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: adwlib.c,v 1.25 2003/02/21 17:14:06 tsutsui Exp $ */
+/* $NetBSD: adwlib.c,v 1.26 2003/10/21 00:57:47 fvdl Exp $ */
/*
* Low level routines for the Advanced Systems Inc. SCSI controllers chips
@@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: adwlib.c,v 1.25 2003/02/21 17:14:06 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adwlib.c,v 1.26 2003/10/21 00:57:47 fvdl Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -2098,7 +2098,7 @@
free_carrp = sc->irq_sp;
sc->irq_sp = ADW_CARRIER_VADDR(sc, ASC_GET_CARRP(irq_next_pa));
- free_carrp->next_ba = (sc->carr_freelist == NULL)? NULL
+ free_carrp->next_ba = (sc->carr_freelist == NULL) ? 0
: sc->carr_freelist->carr_ba;
sc->carr_freelist = free_carrp;
sc->carr_pending_cnt--;
diff -r deb61c195e12 -r 83912295edf2 sys/dev/ic/adwmcode.c
--- a/sys/dev/ic/adwmcode.c Tue Oct 21 00:55:05 2003 +0000
+++ b/sys/dev/ic/adwmcode.c Tue Oct 21 00:57:47 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: adwmcode.c,v 1.10 2001/11/15 09:48:04 lukem Exp $ */
+/* $NetBSD: adwmcode.c,v 1.11 2003/10/21 00:57:47 fvdl Exp $ */
/*
* Generic driver definitions and exported functions for the Advanced
@@ -54,7 +54,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: adwmcode.c,v 1.10 2001/11/15 09:48:04 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adwmcode.c,v 1.11 2003/10/21 00:57:47 fvdl Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -84,7 +84,7 @@
ADW_CARRIER *carriers;
{
ADW_CARRIER *carr;
- u_int32_t carr_next = NULL;
+ u_int32_t carr_next = 0;
int i;
memset(carriers, 0, sizeof(ADW_CARRIER) * ADW_MAX_CARRIER);
Home |
Main Index |
Thread Index |
Old Index