Skip to content
Commit 2802a9a6 authored by Sylvio Alves's avatar Sylvio Alves Committed by Benjamin Cabé
Browse files

drivers: flash: esp32: handle zero-length reads as no-op



Add a guard clause in flash_esp32_read() to return 0 when the
requested length is zero. This avoids unnecessary operations
and aligns with expected flash API behavior, where reading
zero bytes is treated as a no-op.

Signed-off-by: default avatarSylvio Alves <sylvio.alves@espressif.com>
parent d7d5aeb8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment