Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb s/0/NULL/
details: https://anonhg.NetBSD.org/src/rev/b8f74d261fda
branches: trunk
changeset: 343676:b8f74d261fda
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Feb 20 09:38:28 2016 +0000
description:
s/0/NULL/
diffstat:
sys/dev/usb/ugen.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r a6fd03f38925 -r b8f74d261fda sys/dev/usb/ugen.c
--- a/sys/dev/usb/ugen.c Sat Feb 20 02:50:33 2016 +0000
+++ b/sys/dev/usb/ugen.c Sat Feb 20 09:38:28 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ugen.c,v 1.126 2014/09/20 08:45:23 gson Exp $ */
+/* $NetBSD: ugen.c,v 1.127 2016/02/20 09:38:28 skrll Exp $ */
/*
* Copyright (c) 1998, 2004 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ugen.c,v 1.126 2014/09/20 08:45:23 gson Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ugen.c,v 1.127 2016/02/20 09:38:28 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -381,7 +381,7 @@
for (dir = OUT; dir <= IN; dir++) {
if (flag & (dir == OUT ? FWRITE : FREAD)) {
sce = &sc->sc_endpoints[endpt][dir];
- if (sce == 0 || sce->edesc == 0)
+ if (sce == NULL || sce->edesc == NULL)
return (ENXIO);
}
}
@@ -1343,8 +1343,8 @@
dir = UE_GET_DIR(endpt) == UE_DIR_IN ? IN : OUT;
sce = &sc->sc_endpoints[UE_GET_ADDR(endpt)][dir];
sce->sc = 0;
- sce->edesc = 0;
- sce->iface = 0;
+ sce->edesc = NULL;
+ sce->iface = NULL;
}
/* change setting */
Home |
Main Index |
Thread Index |
Old Index