Searched hist:b1f53092326b3fdadb0af444ecdcb3c4e1e8b84a (Results 1 – 1 of 1) sorted by relevance
| /rk3399_ARM-atf/lib/debugfs/ |
| H A D | dev.c | b1f53092326b3fdadb0af444ecdcb3c4e1e8b84a Thu Jul 24 13:49:13 UTC 2025 Harrison Mutai <harrison.mutai@arm.com> fix(debugfs): return negative value on error
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>
|