diff options
author | imp <imp@FreeBSD.org> | 2014-03-30 23:43:36 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2014-03-30 23:43:36 +0000 |
commit | eebc91c3f07da2be029d067225ea5126070dce16 (patch) | |
tree | 7ad4760794b20d65e83a98cd6fc87d97438397d4 /sys/sys/buf_ring.h | |
parent | 99e3e1b8f9b32dbe52cd4a2a7ccdebf86413aaee (diff) | |
download | FreeBSD-src-eebc91c3f07da2be029d067225ea5126070dce16.zip FreeBSD-src-eebc91c3f07da2be029d067225ea5126070dce16.tar.gz |
Remove instances of variables that were set, but never used. gcc 4.9
warns about these by default.
Diffstat (limited to 'sys/sys/buf_ring.h')
-rw-r--r-- | sys/sys/buf_ring.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/sys/buf_ring.h b/sys/sys/buf_ring.h index b1ccaec..a46aa2d 100644 --- a/sys/sys/buf_ring.h +++ b/sys/sys/buf_ring.h @@ -172,7 +172,10 @@ buf_ring_dequeue_mc(struct buf_ring *br) static __inline void * buf_ring_dequeue_sc(struct buf_ring *br) { - uint32_t cons_head, cons_next, cons_next_next; + uint32_t cons_head, cons_next; +#ifdef PREFETCH_DEFINED + uint32_t cons_next_next; +#endif uint32_t prod_tail; void *buf; @@ -180,7 +183,9 @@ buf_ring_dequeue_sc(struct buf_ring *br) prod_tail = br->br_prod_tail; cons_next = (cons_head + 1) & br->br_cons_mask; +#ifdef PREFETCH_DEFINED cons_next_next = (cons_head + 2) & br->br_cons_mask; +#endif if (cons_head == prod_tail) return (NULL); |