diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2011-09-18 18:29:21 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2011-09-18 18:29:21 +0000 |
commit | eb61d31771121cc23c2ce83f4bf41d90952afe2a (patch) | |
tree | 1bd7c8d91bf6cfe15e5db4c4730cd7dbdbd44120 /sys/dev/usb | |
parent | 0c15256ff670a6ed82beaa8c6ad8ab3d3cd5b303 (diff) |
Set pointer to NULL not 0. From Michael Knudsen (several times).
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/ohci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index 6b19277a027..b79e442f82c 100644 --- a/sys/dev/usb/ohci.c +++ b/sys/dev/usb/ohci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ohci.c,v 1.104 2011/07/03 15:47:17 matthew Exp $ */ +/* $OpenBSD: ohci.c,v 1.105 2011/09/18 18:29:20 krw Exp $ */ /* $NetBSD: ohci.c,v 1.139 2003/02/22 05:24:16 tsutsui Exp $ */ /* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */ @@ -442,7 +442,7 @@ ohci_alloc_sed(ohci_softc_t *sc) sed = sc->sc_freeeds; sc->sc_freeeds = sed->next; memset(&sed->ed, 0, sizeof(ohci_ed_t)); - sed->next = 0; + sed->next = NULL; return (sed); } |