Ignore:
Timestamp:
2011-11-07T12:07:49Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
45e7868
Parents:
bcf54ac
Message:

usbhid: Unbind error handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhid/multimedia/multimedia.c

    rbcf54ac ra0c05e7  
    201201                    "Could not add DDF function to category 'keyboard': %s.\n",
    202202                    str_error(rc));
    203                 ddf_fun_destroy(fun);
     203                if (ddf_fun_unbind(fun) != EOK) {
     204                        usb_log_error("Failed to unbind %s, won't destroy.\n",
     205                            fun->name);
     206                } else {
     207                        ddf_fun_destroy(fun);
     208                }
    204209                return rc;
    205210        }
     
    220225                if (multim_dev->console_sess)
    221226                        async_hangup(multim_dev->console_sess);
    222                 const int ret = ddf_fun_unbind(fun);
    223                 if (ret != EOK) {
    224                         usb_log_error("Failed to unbind %s function.\n",
     227                if (ddf_fun_unbind(fun) != EOK) {
     228                        usb_log_error("Failed to unbind %s, won't destroy.\n",
    225229                            fun->name);
    226230                } else {
Note: See TracChangeset for help on using the changeset viewer.