We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4e46aa9 + 65150b6 commit aeda7f7Copy full SHA for aeda7f7
targets/TARGET_Realtek/TARGET_AMEBA/rtw_emac.cpp
@@ -218,10 +218,7 @@ emac_interface_t *wlan_emac_init_interface()
218
219
if (_emac == NULL) {
220
_emac = (emac_interface_t*) malloc(sizeof(emac_interface_t));
221
- if (_emac == NULL) {//new emac_interface_t fail
222
- printf("emac initialization failed\r\n");
223
- return NULL;
224
- }
+ MBED_ASSERT(_emac);
225
_emac->hw = NULL;
226
memcpy((void*)&_emac->ops, &wlan_emac_interface, sizeof(wlan_emac_interface));
227
}
0 commit comments