Re: [PATCH] ipv6: remove redundant check

From: Florian Westphal
Date: Tue Aug 20 2024 - 07:59:50 EST


Xi Huang <xuiagnh@xxxxxxxxx> wrote:
> err varibale will be set everytime,like -ENOBUFS and in if (err < 0),
> when code gets into this path. This check will just slowdown
> the execution and that's all.

Compiler agrees, those conditionals get removed at compile time.

Reviewed-by: Florian Westphal <fw@xxxxxxxxx>