From c2bb6a54ef73f0abf1c49d0560bde51c3b712aae Mon Sep 17 00:00:00 2001 From: Alexander Leidinger Date: Sat, 31 Mar 2007 13:38:12 +0000 Subject: [PATCH] Tell interested readers of the source that the return value is not checked by intend. Found by: Coverity Prevent (tm) CID: 55 Reviewed by: ariff --- sys/dev/sound/usb/uaudio.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/dev/sound/usb/uaudio.c b/sys/dev/sound/usb/uaudio.c index 7e4bb52bb21..3c353517141 100644 --- a/sys/dev/sound/usb/uaudio.c +++ b/sys/dev/sound/usb/uaudio.c @@ -3114,7 +3114,11 @@ uaudio_chan_close(struct uaudio_softc *sc, struct chan *ch) if (sc->sc_nullalt >= 0) { DPRINTF(("uaudio_chan_close: set null alt=%d\n", sc->sc_nullalt)); - usbd_set_interface(as->ifaceh, sc->sc_nullalt); + /* + * The interface will be initialized later again, so an + * error does not hurt. + */ + (void)usbd_set_interface(as->ifaceh, sc->sc_nullalt); } if (ch->pipe) { usbd_abort_pipe(ch->pipe);