Changeset e242fba in mainline


Ignore:
Timestamp:
2013-07-24T17:48:31Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f3922c2
Parents:
205261f
Message:

usbinfo: remove redundant error checks.

all used functions are NULL safe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/usbinfo/list.c

    r205261f re242fba  
    6262        // and addresses as external id are going away
    6363        usb_dev_session_t *sess = usb_dev_connect(handle);
    64         if (!sess) {
    65                 printf(NAME "Failed to connect to device %" PRIun "\n", handle);
    66                 return;
    67         }
    6864        async_exch_t *exch = async_exchange_begin(sess);
    69         if (!exch) {
    70                 printf("Failed to create exchange to dev %" PRIun "\n", handle);
    71                 usb_dev_disconnect(sess);
    72                 return;
    73         }
     65       
    7466        usb_address_t address;
    7567        rc = usb_get_my_address(exch, &address);
     68       
    7669        async_exchange_end(exch);
    7770        usb_dev_disconnect(sess);
Note: See TracChangeset for help on using the changeset viewer.