diff options
author | 2008-05-27 18:19:37 +0000 | |
---|---|---|
committer | 2008-05-27 18:19:37 +0000 | |
commit | f9a2a977fd7070034b9845b31658d08d41729107 (patch) | |
tree | 81ec5c22064611b2578a52617fc70cb925b61047 | |
parent | Instead alloacting a fix frame buffer we allocate the maximum frame size (diff) | |
download | wireguard-openbsd-f9a2a977fd7070034b9845b31658d08d41729107.tar.xz wireguard-openbsd-f9a2a977fd7070034b9845b31658d08d41729107.zip |
Don't fail to compile when not in debug mode.
-rw-r--r-- | sys/dev/usb/uvideo.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c index a6ce78372f2..a82f0578e98 100644 --- a/sys/dev/usb/uvideo.c +++ b/sys/dev/usb/uvideo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvideo.c,v 1.20 2008/05/27 17:47:28 mglocker Exp $ */ +/* $OpenBSD: uvideo.c,v 1.21 2008/05/27 18:19:37 mglocker Exp $ */ /* * Copyright (c) 2008 Robert Nagy <robert@openbsd.org> @@ -213,7 +213,6 @@ uvideo_open(void *addr, int flags, int *size, uint8_t *buffer, { struct uvideo_softc *sc = addr; usbd_status error; - int r; DPRINTF(1, "%s: uvideo_open: sc=%p\n", DEVNAME(sc), sc); @@ -241,8 +240,7 @@ uvideo_open(void *addr, int flags, int *size, uint8_t *buffer, if (error != USBD_NORMAL_COMPLETION) return (EIO); #ifdef UVIDEO_DEBUG - r = uvideo_debug_file_open(sc); - if (r != 0) + if (uvideo_debug_file_open(sc) != 0) return(EIO); usb_init_task(&sc->sc_task_write, uvideo_debug_file_write_sample, sc); #endif |