Changeset e6becb9 in mainline


Ignore:
Timestamp:
2013-01-07T17:29:04Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c9467b0
Parents:
3df8ea9
Message:

libusbhost: Don't try to destroy device if unbind fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/ddf_helpers.c

    r3df8ea9 re6becb9  
    328328                list_remove(&victim->link);
    329329                fibril_mutex_unlock(&hc_dev->guard);
    330                 ddf_fun_unbind(victim->fun);
    331                 ddf_fun_destroy(victim->fun);
     330                const int ret = ddf_fun_unbind(victim->fun);
     331                if (ret == EOK) {
     332                        ddf_fun_destroy(victim->fun);
     333                } else {
     334                        usb_log_warning("Failed to unbind device %d: %s\n",
     335                            id, str_error(ret));
     336                }
    332337                return EOK;
    333338        }
Note: See TracChangeset for help on using the changeset viewer.