Changeset e55d2c1 in mainline for uspace/drv/nic/virtio-net/virtio-net.c
- Timestamp:
- 2024-04-07T12:53:23Z (11 months ago)
- Children:
- 2a0c827c
- Parents:
- c37c24c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/virtio-net/virtio-net.c
rc37c24c re55d2c1 423 423 } 424 424 425 rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);425 rc = nic_fun_add_to_cats(fun); 426 426 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; 429 430 } 430 431 … … 432 433 ddf_dev_get_name(dev)); 433 434 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); 444 439 destroy: 445 440 ddf_fun_destroy(fun);
Note:
See TracChangeset
for help on using the changeset viewer.