[PATCH] powerpc/spufs: Remove invalid semicolon after if statement

Subsystems: cell broadband engine architecture, linux for powerpc (32-bit and 64-bit), spu file system, the rest · Maintainers: Madhavan Srinivasan, Linus Torvalds

STALE6642d

2 messages, 2 authors, 2008-08-19 · open the first message on its own page

[PATCH] powerpc/spufs: Remove invalid semicolon after if statement

From: Ilpo Järvinen <hidden>
Date: 2008-08-19 05:48:57

Signed-off-by: Ilpo Järvinen <redacted>
---
 arch/powerpc/platforms/cell/spufs/sched.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/platforms/cell/spufs/sched.c b/arch/powerpc/platforms/cell/spufs/sched.c
index 2deeeba..f7e5af8 100644
--- a/arch/powerpc/platforms/cell/spufs/sched.c
+++ b/arch/powerpc/platforms/cell/spufs/sched.c
@@ -1030,7 +1030,7 @@ void spuctx_switch_state(struct spu_context *ctx,
 		node = spu->node;
 		if (old_state == SPU_UTIL_USER)
 			atomic_dec(&cbe_spu_info[node].busy_spus);
-		if (new_state == SPU_UTIL_USER);
+		if (new_state == SPU_UTIL_USER)
 			atomic_inc(&cbe_spu_info[node].busy_spus);
 	}
 }
-- 
1.5.2.2

Re: [PATCH] powerpc/spufs: Remove invalid semicolon after if statement

From: Jeremy Kerr <jk@ozlabs.org>
Date: 2008-08-19 14:44:54

Hi Ilpo,
-		if (new_state == SPU_UTIL_USER);
+		if (new_state == SPU_UTIL_USER)
Thanks, good catch. applied to spufs.git.


Jeremy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help