Merge pull request #5069 from deepikabhavnani/assert_added

Changed error print to assert
pull/5278/head
Jimmy Brisson 2017-09-15 17:50:49 -05:00 committed by GitHub
commit aeda7f7d28
1 changed files with 1 additions and 4 deletions

View File

@ -218,10 +218,7 @@ emac_interface_t *wlan_emac_init_interface()
if (_emac == NULL) {
_emac = (emac_interface_t*) malloc(sizeof(emac_interface_t));
if (_emac == NULL) {//new emac_interface_t fail
printf("emac initialization failed\r\n");
return NULL;
}
MBED_ASSERT(_emac);
_emac->hw = NULL;
memcpy((void*)&_emac->ops, &wlan_emac_interface, sizeof(wlan_emac_interface));
}