Markus Armbruster <[email protected]> wrote:
> Several functions return negative errno codes on failure.  Callers
> check for specific codes exactly never.  For some of the functions,
> callers couldn't check even if they wanted to, because the functions
> also return negative values that aren't errno codes, leaving readers
> confused on what the function actually returns.
>
> Clean up and simplify: return -1 instead of negative errno code.
>
> Signed-off-by: Markus Armbruster <[email protected]>
> Reviewed-by: Li Zhijian <[email protected]>

Reviewed-by: Juan Quintela <[email protected]>


Reply via email to