Changeset 4f87a85a in mainline for uspace/drv/char/msim-con/msim-con.c
- Timestamp:
- 2018-12-10T14:29:35Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ca4c5596
- Parents:
- 433d52f
- git-author:
- Jiri Svoboda <jiri@…> (2018-12-10 07:39:07)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-12-10 14:29:35)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/msim-con/msim-con.c
r433d52f r4f87a85a 85 85 irq_cmd_t *msim_cmds = NULL; 86 86 errno_t rc; 87 bool bound = false; 87 88 88 89 circ_buf_init(&con->cbuf, con->buf, msim_con_buf_size, 1); … … 143 144 } 144 145 145 ddf_fun_add_to_category(fun, "console"); 146 bound = true; 147 148 rc = ddf_fun_add_to_category(fun, "console"); 149 if (rc != EOK) { 150 ddf_msg(LVL_ERROR, "Error adding function 'a' to category " 151 "'console'."); 152 goto error; 153 } 146 154 147 155 return EOK; … … 149 157 if (CAP_HANDLE_VALID(con->irq_handle)) 150 158 async_irq_unsubscribe(con->irq_handle); 159 if (bound) 160 ddf_fun_unbind(fun); 151 161 if (fun != NULL) 152 162 ddf_fun_destroy(fun);
Note:
See TracChangeset
for help on using the changeset viewer.