usb4bsd/libusb: Remove an unused variable and mark a dummy variable unused.
authorSascha Wildner <saw@online.de>
Wed, 17 Oct 2012 16:25:30 +0000 (18:25 +0200)
committerSascha Wildner <saw@online.de>
Wed, 17 Oct 2012 16:25:50 +0000 (18:25 +0200)
lib/libusb/libusb10.c
lib/libusb/libusb20_desc.c

index 5434d13..21e8f35 100644 (file)
@@ -990,7 +990,6 @@ libusb10_isoc_proxy(struct libusb20_transfer *pxfer)
        uint16_t iso_packets;
        uint16_t i;
        uint8_t status;
-       uint8_t flags;
 
        status = libusb20_tr_get_status(pxfer);
        sxfer = libusb20_tr_get_priv_sc1(pxfer);
@@ -1012,8 +1011,6 @@ libusb10_isoc_proxy(struct libusb20_transfer *pxfer)
        /* make sure that the number of ISOCHRONOUS packets is valid */
        uxfer->num_iso_packets = iso_packets;
 
-       flags = uxfer->flags;
-
        switch (status) {
        case LIBUSB20_TRANSFER_COMPLETED:
 
index ff2bb6f..fcf5841 100644 (file)
@@ -513,7 +513,7 @@ libusb20_me_encode(void *ptr, uint16_t len, const void *pd)
                                                 * room for the
                                                 * complete structure:
                                                 */
-                                               uint16_t dummy;
+                                               __unused uint16_t dummy;
 
                                                dummy = libusb20_me_encode(buf,
                                                    0xFFFF - 3, ps->ptr);
@@ -669,7 +669,7 @@ 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;
+                               __unused uint16_t dummy;
                                struct libusb20_me_struct *ps;
 
                                ps = LIBUSB20_ADD_BYTES(pd, pd_offset);