]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
tc: Remove unused variable 'res'.
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 23 Nov 2011 21:13:23 +0000 (22:13 +0100)
committerStephen Hemminger <shemminger@vyatta.com>
Wed, 23 Nov 2011 22:46:21 +0000 (14:46 -0800)
Detected by cppcheck.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
tc/m_ipt.c
tc/m_xt_old.c

index a73d400a0bb98d4b2d53d371ba4ca8c889254005..b8655f85b33d6f07120b19a16d8dd88a7d74aef8 100644 (file)
@@ -396,11 +396,9 @@ static int parse_ipt(struct action_util *a,int *argc_p,
        char **argv = *argv_p;
        int argc = 0, iargc = 0;
        char k[16];
-       int res = -1;
        int size = 0;
        int iok = 0, ok = 0;
        __u32 hook = 0, index = 0;
-       res = 0;
 
        lib_dir = getenv("IPTABLES_LIB_DIR");
        if (!lib_dir)
index 3804d7f2f782d96b4fdb018968c8da52c5799ffc..7ed7ecc7a5e68e3e3af4eaec0f3924f57febe79b 100644 (file)
@@ -215,11 +215,9 @@ static int parse_ipt(struct action_util *a,int *argc_p,
        char **argv = *argv_p;
        int argc = 0, iargc = 0;
        char k[16];
-       int res = -1;
        int size = 0;
        int iok = 0, ok = 0;
        __u32 hook = 0, index = 0;
-       res = 0;
 
        set_lib_dir();