[libretiny] Shorten the LN882x zero-size allocation comment

This commit is contained in:
J. Nick Koston
2026-10-04 21:55:28 -05:00
parent 372f13ccce
commit 5a92428bde
@@ -1,10 +1,4 @@
/*
* LN882x: heap_5 returns NULL for a zero-size request, and the SDK's
* malloc-failed hook ends in LN_ASSERT(0), which spins until the watchdog
* resets the chip. LibreTiny's scan handler asks for zero entries when a scan
* finds no networks. Linked with -Wl,--wrap=pvPortMalloc so every allocation
* comes through here; drop it once LibreTiny no longer allocates zero entries.
*/
// LN882x: a zero-size pvPortMalloc trips the SDK's malloc-failed LN_ASSERT; ask for 1 byte instead.
#ifdef USE_LN882X