summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2008-05-27 18:19:38 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2008-05-27 18:19:38 +0000
commit9f141e425115de1386cef41bd8410a231d3fec7d (patch)
tree1fe5a673c476fa799413f8ea489a4585a61d9085 /sys/dev/usb
parentcdea530626fdeccb744b9c09c8070b33068df26c (diff)
Don't fail to compile when not in debug mode.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/uvideo.c6
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