Bluetooth: controller: Rename mem function that checks all-zero mem
For consistency with the return value and to conform with other naming schemes, rename mem_is_zero() to mem_nz(). Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
parent
4ad2746088
commit
4307505e2d
2 changed files with 2 additions and 2 deletions
|
@ -115,7 +115,7 @@ void mem_rcopy(u8_t *dst, u8_t const *src, u16_t len)
|
|||
}
|
||||
}
|
||||
|
||||
u8_t mem_is_zero(u8_t *src, u16_t len)
|
||||
u8_t mem_nz(u8_t *src, u16_t len)
|
||||
{
|
||||
while (len--) {
|
||||
if (*src++) {
|
||||
|
|
|
@ -25,7 +25,7 @@ void *mem_get(void *mem_pool, u16_t mem_size, u16_t index);
|
|||
u16_t mem_index_get(void *mem, void *mem_pool, u16_t mem_size);
|
||||
|
||||
void mem_rcopy(u8_t *dst, u8_t const *src, u16_t len);
|
||||
u8_t mem_is_zero(u8_t *src, u16_t len);
|
||||
u8_t mem_nz(u8_t *src, u16_t len);
|
||||
|
||||
u32_t mem_ut(void);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue