Changes in uspace/drv/char/ns8250/ns8250.c [4f87a85a:09ab0a9a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/ns8250/ns8250.c
r4f87a85a r09ab0a9a 829 829 bool need_cleanup = false; 830 830 bool need_unreg_intr_handler = false; 831 bool bound = false;832 831 errno_t rc; 833 832 … … 910 909 } 911 910 912 bound = true;913 911 ns->fun = fun; 914 912 915 rc = ddf_fun_add_to_category(fun, "serial"); 916 if (rc != EOK) { 917 ddf_msg(LVL_ERROR, "Error adding function to category 'serial'."); 918 goto fail; 919 } 913 ddf_fun_add_to_category(fun, "serial"); 920 914 921 915 ddf_msg(LVL_NOTE, "Device %s successfully initialized.", … … 924 918 return EOK; 925 919 fail: 926 if (bound)927 ddf_fun_unbind(fun);928 920 if (fun != NULL) 929 921 ddf_fun_destroy(fun);
Note:
See TracChangeset
for help on using the changeset viewer.