Ignore:
Timestamp:
2024-04-07T12:53:23Z (11 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/virtio-net/virtio-net.c

    rc37c24c re55d2c1  
    423423        }
    424424
    425         rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);
     425        rc = nic_fun_add_to_cats(fun);
    426426        if (rc != EOK) {
    427                 ddf_msg(LVL_ERROR, "Failed adding function to category");
    428                 goto unbind;
     427                ddf_msg(LVL_ERROR, "Failed adding function to categories");
     428                ddf_fun_unbind(fun);
     429                return rc;
    429430        }
    430431
     
    432433            ddf_dev_get_name(dev));
    433434
    434         rc = ddf_fun_add_to_category(fun, "pcap");
    435         if (rc != EOK) {
    436                 ddf_msg(LVL_ERROR, "Failed adding function to category pcap");
    437                 goto unbind;
    438         }
    439 
    440         return EOK;
    441 
    442 unbind:
    443         ddf_fun_unbind(fun);
     435        return EOK;
     436
     437        // unbind:
     438        // ddf_fun_unbind(fun);
    444439destroy:
    445440        ddf_fun_destroy(fun);
Note: See TracChangeset for help on using the changeset viewer.