summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uts.c
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2009-02-14 20:05:10 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2009-02-14 20:05:10 +0000
commit8779eef752d736e05128ff820feac2bd1c2720ec (patch)
tree7e8388cf9d8e3995bcbfe33a7bc767bf8fcd4d20 /sys/dev/usb/uts.c
parent40ef7e1b553317342e24ed64d1b20aa7a2796e7b (diff)
remove dead assignments and newly created unused variables.
Found by LLVM/Clang Static Analyzer. ok fgsch@ krw@
Diffstat (limited to 'sys/dev/usb/uts.c')
-rw-r--r--sys/dev/usb/uts.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/usb/uts.c b/sys/dev/usb/uts.c
index 1bb8a81bcdb..6776a60a4d7 100644
--- a/sys/dev/usb/uts.c
+++ b/sys/dev/usb/uts.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uts.c,v 1.23 2008/12/29 16:29:42 miod Exp $ */
+/* $OpenBSD: uts.c,v 1.24 2009/02/14 20:05:09 chl Exp $ */
/*
* Copyright (c) 2007 Robert Nagy <robert@openbsd.org>
@@ -151,7 +151,7 @@ uts_attach(struct device *parent, struct device *self, void *aux)
usb_interface_descriptor_t *id;
usb_endpoint_descriptor_t *ed;
struct wsmousedev_attach_args a;
- int i, found;
+ int i;
sc->sc_udev = uaa->device;
sc->sc_product = uaa->product;
@@ -191,7 +191,6 @@ uts_attach(struct device *parent, struct device *self, void *aux)
/* Find the interrupt endpoint */
id = usbd_get_interface_descriptor(sc->sc_iface);
sc->sc_iface_number = id->bInterfaceNumber;
- found = 0;
for (i = 0; i < id->bNumEndpoints; i++) {
ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i);