From 0013274174b7b6c87985431a7bc314cac509f1fa Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Fri, 8 Jun 2018 10:00:53 +0200 Subject: lib: Remove unused #define in rdrbuff This removes a #define that was not used anymore Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/lib/shm_rdrbuff.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/lib/shm_rdrbuff.c b/src/lib/shm_rdrbuff.c index bbad361a..1dfcb2ca 100644 --- a/src/lib/shm_rdrbuff.c +++ b/src/lib/shm_rdrbuff.c @@ -67,9 +67,6 @@ #define idx_to_du_buff_ptr(rdrb, idx) \ ((struct shm_du_buff *) (rdrb->shm_base + idx * SHM_RDRB_BLOCK_SIZE)) -#define block_ptr_to_idx(rdrb, sdb) \ - (((uint8_t *)sdb - rdrb->shm_base) / SHM_RDRB_BLOCK_SIZE) - #define shm_rdrb_used(rdrb) \ ((*rdrb->head + (SHM_BUFFER_SIZE) - *rdrb->tail) \ & ((SHM_BUFFER_SIZE) - 1)) -- cgit v1.2.3