Changeset 9636bad in mainline


Ignore:
Timestamp:
2011-10-12T18:30:52Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
51f033ce
Parents:
844f4ef
Message:

libusbdev: Remove some redundant tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/src/devdrv.c

    r844f4ef r9636bad  
    573573        /* Ignore errors and hope for the best. */
    574574        usb_device_destroy_pipes(dev->ddf_dev, dev->pipes, dev->pipes_count);
    575         if (dev->descriptors.configuration != NULL) {
    576                 free(dev->descriptors.configuration);
    577         }
     575        free(dev->descriptors.configuration);
    578576
    579577        if (dev->alternate_interfaces != NULL) {
    580                 if (dev->alternate_interfaces->alternatives != NULL) {
    581                         free(dev->alternate_interfaces->alternatives);
    582                 }
    583                 free(dev->alternate_interfaces);
    584         }
     578                free(dev->alternate_interfaces->alternatives);
     579        }
     580        free(dev->alternate_interfaces);
    585581
    586582        free(dev);
Note: See TracChangeset for help on using the changeset viewer.