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 not 0 for pointer assignment.
details: https://anonhg.NetBSD.org/src/rev/193071a28afd
branches: trunk
changeset: 783637:193071a28afd
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Jan 02 09:53:58 2013 +0000
description:
Use NULL not 0 for pointer assignment.
diffstat:
sys/dev/usb/usb_subr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 15ff7d4f7960 -r 193071a28afd sys/dev/usb/usb_subr.c
--- a/sys/dev/usb/usb_subr.c Wed Jan 02 09:50:26 2013 +0000
+++ b/sys/dev/usb/usb_subr.c Wed Jan 02 09:53:58 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usb_subr.c,v 1.184 2012/12/11 12:59:03 skrll Exp $ */
+/* $NetBSD: usb_subr.c,v 1.185 2013/01/02 09:53:58 skrll 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.184 2012/12/11 12:59:03 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.185 2013/01/02 09:53:58 skrll Exp $");
#include "opt_compat_netbsd.h"
#include "opt_usbverbose.h"
@@ -751,7 +751,7 @@
p->endpoint = ep;
ep->refcnt++;
p->refcnt = 1;
- p->intrxfer = 0;
+ p->intrxfer = NULL;
p->running = 0;
p->aborting = 0;
p->repeat = 0;
Home |
Main Index |
Thread Index |
Old Index