Re: [PATCH] powerpc: remove unneeded if-checks

From: Arnd Bergmann
Date: Sat Apr 29 2023 - 10:28:39 EST


On Sat, Apr 29, 2023, at 00:12, Tom Rix wrote:
> For ppc64, gcc with W=1 reports
> arch/powerpc/platforms/cell/spu_base.c:330:17: error:
> suggest braces around empty body in an 'if' statement [-Werror=empty-body]
> 330 | ;
> | ^
> arch/powerpc/platforms/cell/spu_base.c:333:17: error:
> suggest braces around empty body in an 'if' statement [-Werror=empty-body]
> 333 | ;
> | ^
>
> These if-checks do not do anything so remove them.
>
> Signed-off-by: Tom Rix <trix@xxxxxxxxxx>

The original intention was to document that there are other
flags that could be handled here, but clearly nobody is adding
code to spufs, so there is no point in keeping that.

Acked-by: Arnd Bergmann <arnd@xxxxxxxx>