linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] spufs: clean up logic in spu_reacquire_runnable
@ 2007-04-13  1:48 Jeremy Kerr
  2007-04-13  7:06 ` [Cbe-oss-dev] " Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: Jeremy Kerr @ 2007-04-13  1:48 UTC (permalink / raw)
  To: cbe-oss-dev, linuxppc-dev

spu_reacquire_runnable has an overly-complex way of calculating its
return value. This change fixes it.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

 arch/powerpc/platforms/cell/spufs/run.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Index: linux-2.6-spufs/arch/powerpc/platforms/cell/spufs/run.c
===================================================================
--- linux-2.6-spufs.orig/arch/powerpc/platforms/cell/spufs/run.c
+++ linux-2.6-spufs/arch/powerpc/platforms/cell/spufs/run.c
@@ -200,9 +200,7 @@ static inline int spu_reacquire_runnable
 		       SPU_STATUS_STOPPED_BY_HALT)) {
 		return *status;
 	}
-	if ((ret = spu_run_init(ctx, npc)) != 0)
-		return ret;
-	return 0;
+	return spu_run_init(ctx, npc);
 }
 
 /*

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-04-13  7:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-13  1:48 [PATCH 1/4] spufs: clean up logic in spu_reacquire_runnable Jeremy Kerr
2007-04-13  7:06 ` [Cbe-oss-dev] " Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).