Make it obvious that we don't care about the return value of

usbd_endpoint_count(), the failure case is handled implicit in the
following code.

Found by:	Coverity Prevent (tm)
CID:		56
This commit is contained in:
Alexander Leidinger 2007-04-01 13:46:39 +00:00
parent daa88cdf0a
commit 2acfcc2d4c

View File

@ -278,7 +278,7 @@ USB_ATTACH(ubser)
/* find our bulk endpoints */
epcount = 0;
usbd_endpoint_count(sc->sc_iface, &epcount);
(void)usbd_endpoint_count(sc->sc_iface, &epcount);
sc->sc_bulkin_no = -1;
sc->sc_bulkout_no = -1;
for (i = 0; i < epcount; i++) {