]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[PKT_SCHED] cls_u32: error code isn't been propogated properly
authorStephen Hemminger <shemminger@linux-foundation.org>
Thu, 18 Oct 2007 16:31:51 +0000 (18:31 +0200)
committerAdrian Bunk <bunk@kernel.org>
Thu, 18 Oct 2007 16:31:51 +0000 (18:31 +0200)
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
net/sched/cls_u32.c

index 2b670479dde1d68ea192e641dbe69ffb754bf9f4..64de9fa1c383a5da3ee3f3c6a00d34edbe3d67be 100644 (file)
@@ -522,7 +522,7 @@ static int u32_set_parms(struct tcf_proto *tp, unsigned long base,
 
 #ifdef CONFIG_NET_CLS_IND
        if (tb[TCA_U32_INDEV-1]) {
-               int err = tcf_change_indev(tp, n->indev, tb[TCA_U32_INDEV-1]);
+               err = tcf_change_indev(tp, n->indev, tb[TCA_U32_INDEV-1]);
                if (err < 0)
                        goto errout;
        }