Cosmetic: remove cruft from mycopypacket()
Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com> Change-Id: Ia95366325668476a222c85748f3141d09767c72a
This commit is contained in:
parent
d1179f2c54
commit
cfa7411121
|
@ -57,24 +57,13 @@ void myfreetimer(K_TIMER * *ppTimer)
|
|||
}
|
||||
}
|
||||
|
||||
void mycopypacket(struct k_args **out,
|
||||
struct k_args *in) /* borrowed from mailbox
|
||||
implementation */
|
||||
/* my version will ALWAYS make a copy = as the name implies it!! */
|
||||
/* adapted from mailbox implementation of copypacket() */
|
||||
void mycopypacket(struct k_args **out, struct k_args *in)
|
||||
{
|
||||
/*if ( in->Srce == 0) */
|
||||
{
|
||||
GETARGS(*out);
|
||||
k_memcpy_s(*out,
|
||||
sizeof(struct k_args),
|
||||
in,
|
||||
sizeof(struct k_args)); /* And copy the data from 'in' */
|
||||
(*out)->Ctxt.args = in;
|
||||
}
|
||||
/*else
|
||||
{
|
||||
*out = in;
|
||||
} */
|
||||
GETARGS(*out);
|
||||
k_memcpy_s(*out, sizeof(struct k_args),
|
||||
in, sizeof(struct k_args));
|
||||
(*out)->Ctxt.args = in;
|
||||
}
|
||||
|
||||
int CalcFreeReaderSpace(struct k_args *pReaderList)
|
||||
|
|
Loading…
Reference in New Issue