datapath: Remove shadowed 'err' variable.
authorBen Pfaff <blp@nicira.com>
Mon, 27 Dec 2010 23:18:37 +0000 (15:18 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 28 Dec 2010 17:16:19 +0000 (09:16 -0800)
sparse reported that 'err' was declared in two different places in this
function.  This patch removes the inner one.  I verified that this didn't
affect correctness either way, so this is not a bug fix.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/actions.c

index 299c16ac261640bcd06aa40f887e4af6625e998f..32053f01f0c46ff96eff876b4e35c77601dafc11 100644 (file)
@@ -150,7 +150,6 @@ static struct sk_buff *modify_vlan_tci(struct datapath *dp, struct sk_buff *skb,
 
                        do {
                                struct sk_buff *nskb = segs->next;
-                               int err;
 
                                segs->next = NULL;