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/85129ee70e8c
branches:  trunk
changeset: 553725:85129ee70e8c
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Oct 21 00:25:59 2003 +0000

description:
Correct NULL abuse.

diffstat:

 sys/dev/ic/adw.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 13063d828f7d -r 85129ee70e8c sys/dev/ic/adw.c
--- a/sys/dev/ic/adw.c  Tue Oct 21 00:25:21 2003 +0000
+++ b/sys/dev/ic/adw.c  Tue Oct 21 00:25:59 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: adw.c,v 1.41 2003/09/18 01:33:58 mycroft Exp $      */
+/* $NetBSD: adw.c,v 1.42 2003/10/21 00:25:59 fvdl Exp $         */
 
 /*
  * Generic driver for the Advanced Systems Inc. SCSI controllers
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: adw.c,v 1.41 2003/09/18 01:33:58 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adw.c,v 1.42 2003/10/21 00:25:59 fvdl Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -773,7 +773,7 @@
                        if (--sg_elem_cnt == 0) {
                                /* last entry, get out */
                                sg_block->sg_cnt = i + 1;
-                               sg_block->sg_ptr = NULL; /* next link = NULL */
+                               sg_block->sg_ptr = 0; /* next link = NULL */
                                return;
                        }
                        sg_list++;



Home | Main Index | Thread Index | Old Index