summaryrefslogtreecommitdiff
path: root/cesar/cp/cl_interf
diff options
context:
space:
mode:
authorlaranjeiro2009-07-01 14:59:02 +0000
committerlaranjeiro2009-07-01 14:59:02 +0000
commit092512bea26ae49be819a83e7f91f6a0e223cb81 (patch)
tree3d65ac3ff92a9a31ec455527934e958b0bfe0ea1 /cesar/cp/cl_interf
parent33aaafc9151428bd017a795c3ddbcd82cff7430e (diff)
*cp/cl_interf:
* Removed the CP_CL_INTERF_ITERATION_CHECKPOINT_CALL define. * Removed the unused loop variable. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@4871 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/cp/cl_interf')
-rw-r--r--cesar/cp/cl_interf/src/cl_interf.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/cesar/cp/cl_interf/src/cl_interf.c b/cesar/cp/cl_interf/src/cl_interf.c
index 78f7b6b0b7..656cc78974 100644
--- a/cesar/cp/cl_interf/src/cl_interf.c
+++ b/cesar/cp/cl_interf/src/cl_interf.c
@@ -33,8 +33,6 @@
#include <cyg/kernel/kapi.h>
-/** The number of loops before calling the cp sta core checkpoint function. */
-#define CP_CL_INTERF_ITERATION_CHECKPOINT_CALL 10
/** The time in eCos ticks to wait before continuing the process. */
#define CP_CL_INTERF_MBOX_GET_WAIT_ECOS_TICKS 10
@@ -218,11 +216,10 @@ cp_cl_interf_process_mme (cp_t *ctx)
u8 *
cp_cl_interf_get_buffer_tx (cp_t *ctx)
{
- u8 *buffer = NULL;
- uint loop;
+ u8 *buffer;
dbg_assert (ctx);
- for (buffer = NULL, loop = 0; buffer == NULL; loop ++)
+ for (buffer = NULL; buffer == NULL;)
{
buffer = (u8 *) mbox_timed_get (&ctx->cl_interf.buffers_mbox,
CP_CL_INTERF_MBOX_GET_WAIT_ECOS_TICKS);
@@ -244,11 +241,10 @@ cp_cl_interf_mme_send (cp_t *ctx, cp_mme_tx_t * mme)
dbg_assert (ctx);
dbg_assert (mme);
+ CP_TRACE (CL_INTERF_MME_SEND, mme->p_mme, mme->length, mme->peer.tei);
interface_mme_send (ctx->interface, mme->p_mme,
mme->length, mme->peer.tei);
- CP_TRACE (CL_INTERF_MME_SEND, mme->p_mme, mme->length, mme->peer.tei);
-
/* Remove the MME from the MME TX object. */
mme->p_mme = NULL;
}