From: Stephen Hemminger Date: Mon, 20 Jun 2011 21:34:30 +0000 (-0700) Subject: tc: fix set never used warning in red X-Git-Tag: v2.6.39~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf808cbf84bd96974b5a7d11484e8b0d46a467e8;p=thirdparty%2Fiproute2.git tc: fix set never used warning in red --- diff --git a/tc/tc_red.c b/tc/tc_red.c index 8f9bde088..66658cacc 100644 --- a/tc/tc_red.c +++ b/tc/tc_red.c @@ -76,9 +76,7 @@ int tc_red_eval_idle_damping(int Wlog, unsigned avpkt, unsigned bps, __u8 *sbuf) double maxtime = 31/lW; int clog; int i; - double tmp; - tmp = maxtime; for (clog=0; clog<32; clog++) { if (maxtime/(1<