[PKT_SCHED] cls_u32: error code isn't been propogated properly
authorStephen Hemminger <shemminger@linux-foundation.org>
Mon, 8 Oct 2007 06:57:45 +0000 (23:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2007 06:57:45 +0000 (23:57 -0700)
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_u32.c

index 8dbe36912ecb226c370184d4d40b88b77163fa46..d4d5d2f271d2f77f17fc7dbfd605cbbe3ab14f5a 100644 (file)
@@ -502,7 +502,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;
        }