diff options
| author | christos <christos@NetBSD.org> | 2006-04-14 16:39:33 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2006-04-14 16:39:33 +0000 |
| commit | 457f653f3fcfe8da8d6ecb2585cf9867f8cfd793 (patch) | |
| tree | 4e93b8fc926c52552250bc04db3494f9574d575d /sys/dev/usb | |
| parent | 2fa8f13ac78fccb712ea509000590fadab58fa33 (diff) | |
Coverity CID 1355: Add a KASSERT to convince coverity that this is not NULL.
Diffstat (limited to 'sys/dev/usb')
| -rw-r--r-- | sys/dev/usb/ugen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/ugen.c b/sys/dev/usb/ugen.c index dd4313d74b9..73d2829c412 100644 --- a/sys/dev/usb/ugen.c +++ b/sys/dev/usb/ugen.c @@ -1,4 +1,4 @@ -/* $NetBSD: ugen.c,v 1.80 2006/03/28 17:38:35 thorpej Exp $ */ +/* $NetBSD: ugen.c,v 1.81 2006/04/14 16:39:33 christos Exp $ */ /* * Copyright (c) 1998, 2004 The NetBSD Foundation, Inc. @@ -39,7 +39,7 @@ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ugen.c,v 1.80 2006/03/28 17:38:35 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ugen.c,v 1.81 2006/04/14 16:39:33 christos Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -986,6 +986,7 @@ ugen_set_interface(struct ugen_softc *sc, int ifaceidx, int altno) return (err); for (endptno = 0; endptno < nendpt; endptno++) { ed = usbd_interface2endpoint_descriptor(iface,endptno); + KASSERT(ed != NULL); endpt = ed->bEndpointAddress; dir = UE_GET_DIR(endpt) == UE_DIR_IN ? IN : OUT; sce = &sc->sc_endpoints[UE_GET_ADDR(endpt)][dir]; |
