Check null pointer in consistent way
@@ -456,7 +456,7 @@ extern esp_t esp;
(name) = esp_mem_alloc(sizeof(*(name))); \
ESP_DEBUGW(ESP_CFG_DBG_VAR | ESP_DBG_TYPE_TRACE, (name) != NULL, "MSG VAR: Allocated %d bytes at %p\r\n", sizeof(*(name)), (name)); \
ESP_DEBUGW(ESP_CFG_DBG_VAR | ESP_DBG_TYPE_TRACE, (name) == NULL, "MSG VAR: Error allocating %d bytes\r\n", sizeof(*(name))); \
- if (!(name)) { \
+ if ((name) == NULL) { \
return espERRMEM; \
} \
memset(name, 0x00, sizeof(*(name))); \
