Changeset e55d2c1 in mainline for uspace/drv/nic/rtl8169/driver.c


Ignore:
Timestamp:
2024-04-07T12:53:23Z (6 months ago)
Author:
Nataliia Korop <n.corop08@…>
Children:
2a0c827c
Parents:
c37c24c
Message:

add_to_cat func in lib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/rtl8169/driver.c

    rc37c24c re55d2c1  
    457457        }
    458458
    459         rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);
     459        rc = nic_fun_add_to_cats(fun);
    460460        if (rc != EOK) {
    461                 ddf_msg(LVL_ERROR, "Failed adding function to category");
    462                 goto err_fun_bind;
     461                ddf_msg(LVL_ERROR, "Failed adding function to categories");
     462                ddf_fun_unbind(fun);
     463                return rc;
    463464        }
    464465
     
    467468        return EOK;
    468469
    469 err_fun_bind:
    470         ddf_fun_unbind(fun);
     470        // err_fun_bind:
     471        // ddf_fun_unbind(fun);
    471472err_fun_create:
    472473        ddf_fun_destroy(fun);
Note: See TracChangeset for help on using the changeset viewer.