aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/libusb20_desc.c
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2015-06-24 01:34:35 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2015-06-24 01:34:35 +0000
commit721d6da7ef11e4ab16369bc645e66c48137fd83b (patch)
tree483e1e4f140848ed79cfdcdebc5167672b1b1212 /lib/libusb/libusb20_desc.c
parent491f3ef01bd8f71a72f64cec73fade65f4f25ccf (diff)
downloadsrc-721d6da7ef11e4ab16369bc645e66c48137fd83b.tar.gz
src-721d6da7ef11e4ab16369bc645e66c48137fd83b.zip
Remove unused variables to silence CLANG warnings.
Remove some BLANK lines and unnecessary TABS. Differential Revision: D2687 Reviewed by: rodrigc, hselasky
Notes
Notes: svn path=/head/; revision=284744
Diffstat (limited to 'lib/libusb/libusb20_desc.c')
-rw-r--r--lib/libusb/libusb20_desc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libusb/libusb20_desc.c b/lib/libusb/libusb20_desc.c
index 22077b61f160..c5cfc9df1056 100644
--- a/lib/libusb/libusb20_desc.c
+++ b/lib/libusb/libusb20_desc.c
@@ -517,9 +517,7 @@ libusb20_me_encode(void *ptr, uint16_t len, const void *pd)
* room for the
* complete structure:
*/
- uint16_t dummy;
-
- dummy = libusb20_me_encode(buf,
+ (void) libusb20_me_encode(buf,
0xFFFF - 3, ps->ptr);
} else {
bcopy(src_ptr, buf, src_len);
@@ -673,7 +671,6 @@ libusb20_me_decode(const void *ptr, uint16_t len, void *pd)
~(LIBUSB20_ME_STRUCT_ALIGN - 1)); /* align */
while (pd_count--) {
uint16_t temp;
- uint16_t dummy;
struct libusb20_me_struct *ps;
ps = LIBUSB20_ADD_BYTES(pd, pd_offset);
@@ -763,7 +760,7 @@ libusb20_me_decode(const void *ptr, uint16_t len, void *pd)
* Recursivly decode
* the next structure
*/
- dummy = libusb20_me_decode(buf,
+ (void) libusb20_me_decode(buf,
temp, ps->ptr);
} else {
/* update type */