summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2007-04-01 13:46:39 +0000
committernetchild <netchild@FreeBSD.org>2007-04-01 13:46:39 +0000
commitf2e6b7856fb7f8c051e6278bf0854587163cc607 (patch)
treee3debd6c2afeae15cf208f1737af4f2d7aeda9d7 /sys
parentf5daf2459e8bc3002f84a9b708ca8c2de12b7d74 (diff)
downloadFreeBSD-src-f2e6b7856fb7f8c051e6278bf0854587163cc607.zip
FreeBSD-src-f2e6b7856fb7f8c051e6278bf0854587163cc607.tar.gz
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
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/ubser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/ubser.c b/sys/dev/usb/ubser.c
index 9dbecfa..4a97a95 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++) {
OpenPOWER on IntegriCloud