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 Use NULL instead of 0 for (function) pointer
details: https://anonhg.NetBSD.org/src/rev/621ff8d7ef55
branches: nick-nhusb
changeset: 334340:621ff8d7ef55
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Dec 19 10:11:13 2015 +0000
description:
Use NULL instead of 0 for (function) pointer
diffstat:
sys/dev/usb/if_atu.c | 6 +++---
sys/dev/usb/usbdi.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r e69ab6b44b30 -r 621ff8d7ef55 sys/dev/usb/if_atu.c
--- a/sys/dev/usb/if_atu.c Sat Dec 19 10:06:32 2015 +0000
+++ b/sys/dev/usb/if_atu.c Sat Dec 19 10:11:13 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_atu.c,v 1.50.2.9 2015/10/06 21:32:15 skrll Exp $ */
+/* $NetBSD: if_atu.c,v 1.50.2.10 2015/12/19 10:11:13 skrll Exp $ */
/* $OpenBSD: if_atu.c,v 1.48 2004/12/30 01:53:21 dlg Exp $ */
/*
* Copyright (c) 2003, 2004
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_atu.c,v 1.50.2.9 2015/10/06 21:32:15 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_atu.c,v 1.50.2.10 2015/12/19 10:11:13 skrll Exp $");
#include <sys/param.h>
#include <sys/sockio.h>
@@ -320,7 +320,7 @@
return USBD_IOERROR;
}
usbd_setup_default_xfer(xfer, sc->atu_udev, 0, 500000, &req, data,
- length, USBD_SHORT_XFER_OK, 0);
+ length, USBD_SHORT_XFER_OK, NULL);
err = usbd_sync_transfer(xfer);
diff -r e69ab6b44b30 -r 621ff8d7ef55 sys/dev/usb/usbdi.c
--- a/sys/dev/usb/usbdi.c Sat Dec 19 10:06:32 2015 +0000
+++ b/sys/dev/usb/usbdi.c Sat Dec 19 10:11:13 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usbdi.c,v 1.162.2.35 2015/12/19 10:06:32 skrll Exp $ */
+/* $NetBSD: usbdi.c,v 1.162.2.36 2015/12/19 10:11:13 skrll Exp $ */
/*
* Copyright (c) 1998, 2012, 2015 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.162.2.35 2015/12/19 10:06:32 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.162.2.36 2015/12/19 10:11:13 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -1087,7 +1087,7 @@
return error;
usbd_setup_default_xfer(xfer, dev, 0, timeout, req,
- data, UGETW(req->wLength), flags, 0);
+ data, UGETW(req->wLength), flags, NULL);
xfer->ux_pipe = pipe;
err = usbd_sync_transfer(xfer);
#if defined(USB_DEBUG) || defined(DIAGNOSTIC)
Home |
Main Index |
Thread Index |
Old Index