Source-Changes-HG archive

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

[src/nick-nhusb]: src/sys/dev/usb s/0/NULL/ for pointer



details:   https://anonhg.NetBSD.org/src/rev/aa541c36db6c
branches:  nick-nhusb
changeset: 804323:aa541c36db6c
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Mar 30 12:07:03 2015 +0000

description:
s/0/NULL/ for pointer

diffstat:

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

diffs (27 lines):

diff -r 881b48c6bfb0 -r aa541c36db6c sys/dev/usb/usbdi.c
--- a/sys/dev/usb/usbdi.c       Mon Mar 30 11:57:12 2015 +0000
+++ b/sys/dev/usb/usbdi.c       Mon Mar 30 12:07:03 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbdi.c,v 1.162.2.24 2015/03/29 11:13:34 skrll Exp $   */
+/*     $NetBSD: usbdi.c,v 1.162.2.25 2015/03/30 12:07:03 skrll Exp $   */
 
 /*
  * Copyright (c) 1998, 2012 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.162.2.24 2015/03/29 11:13:34 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.162.2.25 2015/03/30 12:07:03 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -740,7 +740,7 @@
        usbd_status err;
        void *endpoints;
 
-       if (LIST_FIRST(&iface->ui_pipes) != 0)
+       if (LIST_FIRST(&iface->ui_pipes) != NULL)
                return USBD_IN_USE;
 
        endpoints = iface->ui_endpoints;



Home | Main Index | Thread Index | Old Index