Changeset 5357620 in mainline


Ignore:
Timestamp:
2011-10-03T13:40:30Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
58edcfb
Parents:
dbd54f72
Message:

ohci: Remove redundant if.

free() can handle NULL pointers.

Location:
uspace/drv/bus/usb/ohci
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/ohci_batch.c

    rdbd54f72 r5357620  
    5454        unsigned i = 0;
    5555        if (ohci_batch->tds) {
    56                 for (; i< ohci_batch->td_count; ++i) {
     56                for (; i < ohci_batch->td_count; ++i) {
    5757                        if (i != ohci_batch->leave_td)
    5858                                free32(ohci_batch->tds[i]);
  • uspace/drv/bus/usb/ohci/utils/malloc32.h

    rdbd54f72 r5357620  
    6969 */
    7070static inline void free32(void *addr)
    71         { if (addr) free(addr); }
     71        { free(addr); }
    7272#endif
    7373/**
Note: See TracChangeset for help on using the changeset viewer.