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:
parent
daa88cdf0a
commit
2acfcc2d4c
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user