[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230428221240.2679194-1-trix@redhat.com>
Date: Fri, 28 Apr 2023 18:12:40 -0400
From: Tom Rix <trix@...hat.com>
To: arnd@...db.de, mpe@...erman.id.au, npiggin@...il.com,
christophe.leroy@...roup.eu
Cc: linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
Tom Rix <trix@...hat.com>
Subject: [PATCH] powerpc: 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@...hat.com>
---
arch/powerpc/platforms/cell/spu_base.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/arch/powerpc/platforms/cell/spu_base.c b/arch/powerpc/platforms/cell/spu_base.c
index 7bd0b563e163..dea6f0f25897 100644
--- a/arch/powerpc/platforms/cell/spu_base.c
+++ b/arch/powerpc/platforms/cell/spu_base.c
@@ -326,12 +326,6 @@ spu_irq_class_1(int irq, void *data)
if (stat & CLASS1_STORAGE_FAULT_INTR)
__spu_trap_data_map(spu, dar, dsisr);
- if (stat & CLASS1_LS_COMPARE_SUSPEND_ON_GET_INTR)
- ;
-
- if (stat & CLASS1_LS_COMPARE_SUSPEND_ON_PUT_INTR)
- ;
-
spu->class_1_dsisr = 0;
spu->class_1_dar = 0;
--
2.27.0
Powered by blists - more mailing lists