Re: [PATCH net-next v2 1/3] net: pktgen: fix code style (ERROR: else should follow close brace '}')

From: Simon Horman
Date: Wed Apr 16 2025 - 13:21:06 EST


On Tue, Apr 15, 2025 at 01:29:14PM +0200, Peter Seiderer wrote:
> Fix checkpatch code style errors:
>
> ERROR: else should follow close brace '}'
> #1317: FILE: net/core/pktgen.c:1317:
> + }
> + else
>
> And checkpatch follow up code style check:
>
> CHECK: Unbalanced braces around else statement
> #1316: FILE: net/core/pktgen.c:1316:
> + } else
>
> Signed-off-by: Peter Seiderer <ps.report@xxxxxxx>
> ---
> Changes v1 -> v2:
> - Additional add braces around the else statement (as suggested by a follow
> up checkpatch run and by Jakub Kicinski from code review).

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>