Bluetooth: controller: Make coding style around ret_cb consistent
Updated implementation to have consistent initialization of ret_cb use when passing it to ticker function calls. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
13f079f212
commit
4bf2a0d520
6 changed files with 27 additions and 24 deletions
|
@ -1658,7 +1658,7 @@ static void ticker_op_stop_cb(uint32_t status, void *param)
|
|||
|
||||
static inline void disable(uint16_t handle)
|
||||
{
|
||||
volatile uint32_t ret_cb = TICKER_STATUS_BUSY;
|
||||
uint32_t volatile ret_cb;
|
||||
struct ll_conn *conn;
|
||||
void *mark;
|
||||
uint32_t ret;
|
||||
|
@ -1668,10 +1668,10 @@ static inline void disable(uint16_t handle)
|
|||
mark = ull_disable_mark(conn);
|
||||
LL_ASSERT(mark == conn);
|
||||
|
||||
ret_cb = TICKER_STATUS_BUSY;
|
||||
ret = ticker_stop(TICKER_INSTANCE_ID_CTLR, TICKER_USER_ID_THREAD,
|
||||
TICKER_ID_CONN_BASE + handle,
|
||||
ull_ticker_status_give, (void *)&ret_cb);
|
||||
|
||||
ret = ull_ticker_status_take(ret, &ret_cb);
|
||||
if (!ret) {
|
||||
ret = ull_disable(&conn->lll);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue