[Cbe-oss-dev] [PATCH 7/9]MARS: Fix task signal try wait bug

Yuji Mano yuji.mano at am.sony.com
Sat Oct 18 10:29:05 EST 2008


This fixes a bug in the error checking where workload_signal_try_wait would
always return MARS_ERROR_PARAMS.

Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>

---
 src/mpu/kernel/kernel_workload.c |    2 --
 1 file changed, 2 deletions(-)

--- a/src/mpu/kernel/kernel_workload.c
+++ b/src/mpu/kernel/kernel_workload.c
@@ -365,8 +365,6 @@ int workload_signal_try_wait(void)
 	/* check function params */
 	if (workload_index >= MARS_WORKLOAD_MAX)
 		return MARS_ERROR_PARAMS;
-	if (workload_index == workload_index)
-		return MARS_ERROR_PARAMS;
 
 	/* calculate block/index from id */
 	block = workload_index / MARS_WORKLOAD_PER_BLOCK;






More information about the cbe-oss-dev mailing list