From 2acfcc2d4cb223b1d93dfc53ffb515e2edfc6557 Mon Sep 17 00:00:00 2001 From: Alexander Leidinger Date: Sun, 1 Apr 2007 13:46:39 +0000 Subject: [PATCH] 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 --- sys/dev/usb/ubser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/usb/ubser.c b/sys/dev/usb/ubser.c index 9dbecfa0e8d8..4a97a9556e3f 100644 --- a/sys/dev/usb/ubser.c +++ b/sys/dev/usb/ubser.c @@ -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++) {