mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2026-07-03 10:48:47 +00:00
The current implementation of buf_to_channel() returns 0 even on invalid input, making it difficult for callers to distinguish between an error and a successful zero-byte transfer. Change the return behavior to return -1 for error conditions. Change-Id: Id57d7fd9365f5961a72ba7633dbedd701740e7c4 Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>