Ignore:
Timestamp:
2020-05-05T16:15:09Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ccbd2e1
Parents:
698ce34c
Message:

async_hangup() should just always succeed

There is no reason why this should fail in a valid program. If you e.g.
hang up the phone manually and then call async_hangup(), your bad.
We are washing our hands.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/hid/usbhid/mouse/mousedev.c

    r698ce34c r622e7c9  
    422422
    423423        /* Hangup session to the console */
    424         if (mouse_dev->mouse_sess != NULL) {
    425                 const errno_t ret = async_hangup(mouse_dev->mouse_sess);
    426                 if (ret != EOK)
    427                         usb_log_warning("Failed to hang up mouse session: "
    428                             "%p, %s.\n", mouse_dev->mouse_sess, str_error(ret));
    429         }
     424        if (mouse_dev->mouse_sess != NULL)
     425                async_hangup(mouse_dev->mouse_sess);
    430426
    431427        free(mouse_dev->buttons);
Note: See TracChangeset for help on using the changeset viewer.