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:
Carles Cufi 2017-06-10 16:08:37 +02:00 committed by Johan Hedberg
commit 4307505e2d
2 changed files with 2 additions and 2 deletions

View file

@ -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--) { while (len--) {
if (*src++) { if (*src++) {

View file

@ -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); 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); 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); u32_t mem_ut(void);