Skip to content

Commit

Permalink
FIx syntax style
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Dec 17, 2019
1 parent 2ff30a5 commit 5da57bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions esp_at_lib/src/esp/esp_pbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ esp_pbuf_free(esp_pbuf_p pbuf) {
ESP_DEBUGF(ESP_CFG_DBG_PBUF | ESP_DBG_TYPE_TRACE,
"[PBUF] Deallocating %p with len/tot_len: %d/%d\r\n", p, (int)p->len, (int)p->tot_len);
pn = p->next; /* Save next entry */
esp_mem_free_s((void **)&p); /* Free memory for pbuf */
esp_mem_free_s((void **)&p); /* Free memory for pbuf */
p = pn; /* Restore with next entry */
++cnt; /* Increase number of freed pbufs */
} else {
Expand Down Expand Up @@ -377,8 +377,8 @@ esp_pbuf_memcmp(const esp_pbuf_p pbuf, const void* data, size_t len, size_t offs
uint8_t el;
const uint8_t* d = data;

if (pbuf == NULL || data == NULL || len == 0 || /* Input parameters check */
pbuf->tot_len < (offset + len)) { /* Check of valid ranges */
if (pbuf == NULL || data == NULL || len == 0/* Input parameters check */
|| pbuf->tot_len < (offset + len)) { /* Check of valid ranges */
return ESP_SIZET_MAX; /* Invalid check here */
}

Expand Down

0 comments on commit 5da57bf

Please sign in to comment.