diff options
author | 2009-02-14 20:05:09 +0000 | |
---|---|---|
committer | 2009-02-14 20:05:09 +0000 | |
commit | 1d4b9eab81d969b84ba75149bea8f388845ab8e6 (patch) | |
tree | a1bd99b72f22a8c962e5476b947a0a91831abcd1 /sys/dev/usb/uts.c | |
parent | Make spstrcpy() return ENAMETOOLONG if the string being copied is too long. (diff) | |
download | wireguard-openbsd-1d4b9eab81d969b84ba75149bea8f388845ab8e6.tar.xz wireguard-openbsd-1d4b9eab81d969b84ba75149bea8f388845ab8e6.zip |
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.c | 5 |
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); |