]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc: fix set never used warning in red
authorStephen Hemminger <shemminger@vyatta.com>
Mon, 20 Jun 2011 21:34:30 +0000 (14:34 -0700)
committerStephen Hemminger <shemminger@vyatta.com>
Mon, 20 Jun 2011 21:34:30 +0000 (14:34 -0700)
tc/tc_red.c

index 8f9bde088ed1de694ddfae14a0664c3a85fbb452..66658caccb09be4ea30f9e86460a9e5627092841 100644 (file)
@@ -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<<clog) < 512)
                        break;