Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/ns8250/ns8250.c

    r4f87a85a r09ab0a9a  
    829829        bool need_cleanup = false;
    830830        bool need_unreg_intr_handler = false;
    831         bool bound = false;
    832831        errno_t rc;
    833832
     
    910909        }
    911910
    912         bound = true;
    913911        ns->fun = fun;
    914912
    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");
    920914
    921915        ddf_msg(LVL_NOTE, "Device %s successfully initialized.",
     
    924918        return EOK;
    925919fail:
    926         if (bound)
    927                 ddf_fun_unbind(fun);
    928920        if (fun != NULL)
    929921                ddf_fun_destroy(fun);
Note: See TracChangeset for help on using the changeset viewer.