diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2008-11-06 21:07:14 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2008-11-06 21:07:14 +0000 |
commit | 1704cc2dc4ec8766ddba097d2b7ace33f58cb8ca (patch) | |
tree | 17d45bf6e1dc036983063ffae638342cf03f531d /sys | |
parent | 5006535a1dbd066cff6bd7b4d40982ba7b3018a2 (diff) |
Fix a small bug which made it impossible to use more than one
video control.
Diffstat (limited to 'sys')
-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 7735b19c5b9..557fa07c46f 100644 --- a/sys/dev/usb/uvideo.c +++ b/sys/dev/usb/uvideo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvideo.c,v 1.87 2008/10/26 21:11:02 mglocker Exp $ */ +/* $OpenBSD: uvideo.c,v 1.88 2008/11/06 21:07:13 mglocker Exp $ */ /* * Copyright (c) 2008 Robert Nagy <robert@openbsd.org> @@ -597,7 +597,7 @@ uvideo_find_ctrl(struct uvideo_softc *sc, int id) } /* does the device support this control? */ - for (found = 0, j = 0; i < sc->sc_desc_vc_pu_num; j++) { + for (found = 0, j = 0; j < sc->sc_desc_vc_pu_num; j++) { if (UGETW(sc->sc_desc_vc_pu[j]->bmControls) & uvideo_ctrls[i].ctrl_bitmap) { found = 1; |