Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/spufs: remove unneeded if-checks

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@redhat.com>
Fixes: 67207b9664a8 ("[PATCH] spufs: The SPU file system, base")
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230428221240.2679194-1-trix@redhat.com

authored by

Tom Rix and committed by
Michael Ellerman
da5311a4 9d87ab41

-6
-6
arch/powerpc/platforms/cell/spu_base.c
··· 326 326 if (stat & CLASS1_STORAGE_FAULT_INTR) 327 327 __spu_trap_data_map(spu, dar, dsisr); 328 328 329 - if (stat & CLASS1_LS_COMPARE_SUSPEND_ON_GET_INTR) 330 - ; 331 - 332 - if (stat & CLASS1_LS_COMPARE_SUSPEND_ON_PUT_INTR) 333 - ; 334 - 335 329 spu->class_1_dsisr = 0; 336 330 spu->class_1_dar = 0; 337 331