[PATCH 1/2] powerpc/module_64: Improve restore_r2() return semantics

Song Liu song at kernel.org
Wed Jan 25 16:53:58 AEDT 2023


On Tue, Jan 24, 2023 at 7:38 PM Josh Poimboeuf <jpoimboe at kernel.org> wrote:
>
> restore_r2() returns 1 on success, which is surprising for a non-boolean
> function.  Change it to return 0 on success and -errno on error to match
> kernel coding convention.
>
> Signed-off-by: Josh Poimboeuf <jpoimboe at kernel.org>

Acked-by: Song Liu <song at kernel.org>


More information about the Linuxppc-dev mailing list