diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2008-12-03 05:18:30 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2008-12-03 05:18:30 +0000 |
commit | 1b5b6926f86e09ce4173f4cbf6f29af2cc78b9ab (patch) | |
tree | ac9541a0df7b4998d976c1ba7a1934fb633a77ff /sys/dev/usb | |
parent | c4a5dcba4abf1b5e86cdff75843642b635fcafeb (diff) |
Fix error handling for usbd_transfer().
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/uvideo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c index 9753e16f4d0..af5b4b25151 100644 --- a/sys/dev/usb/uvideo.c +++ b/sys/dev/usb/uvideo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvideo.c,v 1.96 2008/12/03 03:47:25 yuo Exp $ */ +/* $OpenBSD: uvideo.c,v 1.97 2008/12/03 05:18:29 mglocker Exp $ */ /* * Copyright (c) 2008 Robert Nagy <robert@openbsd.org> @@ -1665,7 +1665,7 @@ uvideo_vs_start_isoc_ixfer(struct uvideo_softc *sc, uvideo_vs_cb); error = usbd_transfer(ixfer->xfer); - if (error != USBD_IN_PROGRESS) { + if (error && error != USBD_IN_PROGRESS) { DPRINTF(1, "%s: usbd_transfer error=%s!\n", DEVNAME(sc), usbd_errstr(error)); } |