tests: fifo: fix code style

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2017-06-16 21:59:45 -04:00 committed by Kumar Gala
commit 1a93489935
4 changed files with 18 additions and 17 deletions

View file

@ -30,6 +30,7 @@ static void tfifo_thread_thread(struct k_fifo *pfifo)
u32_t start_t = k_uptime_get_32(); u32_t start_t = k_uptime_get_32();
void *ret = k_fifo_get(pfifo, 500); void *ret = k_fifo_get(pfifo, 500);
u32_t dur = k_uptime_get_32() - start_t; u32_t dur = k_uptime_get_32() - start_t;
/* While we observed the side effect of the last statement /* While we observed the side effect of the last statement
* ( call to k_fifo_cancel_wait) of the thread, it's not fact * ( call to k_fifo_cancel_wait) of the thread, it's not fact
* that it returned, within the thread. Then it may happen * that it returned, within the thread. Then it may happen

View file

@ -40,7 +40,7 @@ static void tfifo_put(struct k_fifo *pfifo)
} }
/**TESTPOINT: fifo put list*/ /**TESTPOINT: fifo put list*/
static fdata_t *head = &data_l[0], *tail = &data_l[LIST_LEN-1]; static fdata_t *head = &data_l[0], *tail = &data_l[LIST_LEN - 1];
head->snode.next = (sys_snode_t *)tail; head->snode.next = (sys_snode_t *)tail;
tail->snode.next = NULL; tail->snode.next = NULL;