Changeset 8d9217d in mainline for uspace/drv/nic/e1k/e1k.c


Ignore:
Timestamp:
2024-03-20T17:06:29Z (2 months ago)
Author:
Nataliia Korop <n.corop08@…>
Children:
384f081
Parents:
78edb5e
Message:

nic, drvs, pcapctl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/e1k/e1k.c

    r78edb5e r8d9217d  
    22022202                goto err_fun_bind;
    22032203
    2204         rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);
    2205         if (rc != EOK)
    2206                 goto err_add_to_cat;
    2207 
    2208         rc = ddf_fun_add_to_category(fun, "pcap");
     2204        // rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);
     2205        // if (rc != EOK)
     2206        //      goto err_add_to_cat;
     2207
     2208        // rc = ddf_fun_add_to_category(fun, "pcap");
     2209        // if (rc != EOK) {
     2210        //      ddf_msg(LVL_ERROR, "Failed adding function to category pcap");
     2211        //      goto err_add_to_cat;
     2212        // }
     2213        rc = nic_fun_add_to_cats(fun);
    22092214        if (rc != EOK) {
    2210                 ddf_msg(LVL_ERROR, "Failed adding function to category pcap");
    2211                 goto err_add_to_cat;
    2212         }
    2213 
     2215                ddf_msg(LVL_ERROR, "Failed adding function to categories");
     2216                return rc;
     2217        }
    22142218        return EOK;
    22152219
    2216 err_add_to_cat:
    2217         ddf_fun_unbind(fun);
     2220        // err_add_to_cat:
     2221        // ddf_fun_unbind(fun);
    22182222err_fun_bind:
    22192223err_rx_structure:
Note: See TracChangeset for help on using the changeset viewer.