Changes in uspace/srv/net/ethip/ethip_nic.c [1038a9c:96c0b7b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/ethip/ethip_nic.c
r1038a9c r96c0b7b 150 150 static int ethip_nic_open(service_id_t sid) 151 151 { 152 ethip_nic_t *nic; 153 int rc; 152 154 bool in_list = false; 153 155 nic_address_t nic_address; 154 156 155 157 log_msg(LVL_DEBUG, "ethip_nic_open()"); 156 ethip_nic_t *nic = ethip_nic_new();158 nic = ethip_nic_new(); 157 159 if (nic == NULL) 158 160 return ENOMEM; 159 160 intrc = loc_service_get_name(sid, &nic->svc_name);161 162 rc = loc_service_get_name(sid, &nic->svc_name); 161 163 if (rc != EOK) { 162 164 log_msg(LVL_ERROR, "Failed getting service name."); 163 165 goto error; 164 166 } 165 167 166 168 nic->sess = loc_service_connect(EXCHANGE_SERIALIZE, sid, 0); 167 169 if (nic->sess == NULL) { … … 169 171 goto error; 170 172 } 171 173 172 174 nic->svc_id = sid; 173 175 174 176 rc = nic_callback_create(nic->sess, ethip_nic_cb_conn, nic); 175 177 if (rc != EOK) { … … 296 298 int ethip_nic_discovery_start(void) 297 299 { 298 int rc = loc_register_cat_change_cb(ethip_nic_cat_change_cb); 300 int rc; 301 302 rc = loc_register_cat_change_cb(ethip_nic_cat_change_cb); 299 303 if (rc != EOK) { 300 304 log_msg(LVL_ERROR, "Failed registering callback for NIC " … … 302 306 return rc; 303 307 } 304 308 305 309 return ethip_nic_check_new(); 306 310 }
Note:
See TracChangeset
for help on using the changeset viewer.