Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Use NULL instead of 0 as appropriate.



details:   https://anonhg.NetBSD.org/src/rev/44e72f4c3f5a
branches:  trunk
changeset: 789542:44e72f4c3f5a
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Wed Aug 21 17:59:40 2013 +0000

description:
Use NULL instead of 0 as appropriate.

diffstat:

 sys/dev/usb/usb.c      |  6 +++---
 sys/dev/usb/usb_subr.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r d729403b86e3 -r 44e72f4c3f5a sys/dev/usb/usb.c
--- a/sys/dev/usb/usb.c Wed Aug 21 17:52:10 2013 +0000
+++ b/sys/dev/usb/usb.c Wed Aug 21 17:59:40 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usb.c,v 1.140 2013/01/22 12:40:43 jmcneill Exp $       */
+/*     $NetBSD: usb.c,v 1.141 2013/08/21 17:59:40 jakllsch Exp $       */
 
 /*
  * Copyright (c) 1998, 2002, 2008, 2012 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usb.c,v 1.140 2013/01/22 12:40:43 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb.c,v 1.141 2013/08/21 17:59:40 jakllsch Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -660,7 +660,7 @@
                if (len < 0 || len > 32768)
                        return (EINVAL);
                if (addr < 0 || addr >= USB_MAX_DEVICES ||
-                   sc->sc_bus->devices[addr] == 0)
+                   sc->sc_bus->devices[addr] == NULL)
                        return (EINVAL);
                if (len != 0) {
                        iov.iov_base = (void *)ur->ucr_data;
diff -r d729403b86e3 -r 44e72f4c3f5a sys/dev/usb/usb_subr.c
--- a/sys/dev/usb/usb_subr.c    Wed Aug 21 17:52:10 2013 +0000
+++ b/sys/dev/usb/usb_subr.c    Wed Aug 21 17:59:40 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usb_subr.c,v 1.190 2013/03/20 11:14:51 skrll Exp $     */
+/*     $NetBSD: usb_subr.c,v 1.191 2013/08/21 17:59:40 jakllsch Exp $  */
 /*     $FreeBSD: src/sys/dev/usb/usb_subr.c,v 1.18 1999/11/17 22:33:47 n_hibma Exp $   */
 
 /*
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.190 2013/03/20 11:14:51 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.191 2013/08/21 17:59:40 jakllsch Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -801,7 +801,7 @@
        int addr;
 
        for (addr = 1; addr < USB_MAX_DEVICES; addr++)
-               if (bus->devices[addr] == 0)
+               if (bus->devices[addr] == NULL)
                        return (addr);
        return (-1);
 }



Home | Main Index | Thread Index | Old Index