Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/virtio-net/virtio-net.c

    r3a4c6d9 r56210a7a  
    428428        }
    429429
    430         rc = nic_fun_add_to_cats(fun);
     430        rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);
    431431        if (rc != EOK) {
    432                 ddf_msg(LVL_ERROR, "Failed adding function to categories");
    433                 ddf_fun_unbind(fun);
    434                 return rc;
     432                ddf_msg(LVL_ERROR, "Failed adding function to category");
     433                goto unbind;
    435434        }
    436435
     
    440439        return EOK;
    441440
    442         // unbind:
    443         // ddf_fun_unbind(fun);
     441unbind:
     442        ddf_fun_unbind(fun);
    444443destroy:
    445444        ddf_fun_destroy(fun);
Note: See TracChangeset for help on using the changeset viewer.