Changes in uspace/drv/char/msim-con/msim-con.c [984a9ba:4f87a85a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/msim-con/msim-con.c
r984a9ba 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.