From: Andre Noll Date: Tue, 2 Mar 2010 05:54:18 +0000 (+0100) Subject: btr: Kill an unused variable. X-Git-Tag: v0.4.2~32 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=635ffa801ce0d4f5055ad022a5de935acd83b056;p=paraslash.git btr: Kill an unused variable. --- diff --git a/buffer_tree.c b/buffer_tree.c index 45650a24..9be53201 100644 --- a/buffer_tree.c +++ b/buffer_tree.c @@ -854,7 +854,7 @@ static void merge_input_pool(struct btr_node *btrn, size_t dest_size) struct btr_buffer_reference *br, *wbr = NULL; int num_refs; /* including wrap buffer */ char *buf, *buf1 = NULL, *buf2 = NULL; - size_t sz, sz1 = 0, sz2 = 0, wsz; + size_t sz, sz1 = 0, sz2 = 0; br = get_first_input_br(btrn); if (!br || br_available_bytes(br) >= dest_size) @@ -922,7 +922,6 @@ next: * We already have a wrap buffer, but it is too small. It might be * partially used. */ - wsz = br_available_bytes(wbr); if (wbr->wrap_count == sz1 && wbr->btrb->size >= sz1 + sz2) /* nothing we can do about it */ return; sz = sz1 + sz2 - wbr->btrb->size; /* amount of new data */