From: Ben Pfaff Date: Fri, 19 Jun 2009 21:03:12 +0000 (-0700) Subject: datapath: Drop unneeded local variable initialization. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5225dd627a7c64245aeaf509921fb71027af469;p=openvswitch datapath: Drop unneeded local variable initialization. --- diff --git a/datapath/actions.c b/datapath/actions.c index a037e432..9b82f9e3 100644 --- a/datapath/actions.c +++ b/datapath/actions.c @@ -361,7 +361,7 @@ int execute_actions(struct datapath *dp, struct sk_buff *skb, * then freeing the original skbuff is wasteful. So the following code * is slightly obscure just to avoid that. */ int prev_port = -1; - int err = 0; + int err; for (; n_actions > 0; a++, n_actions--) { WARN_ON_ONCE(skb_shared(skb)); if (prev_port != -1) { @@ -420,5 +420,5 @@ int execute_actions(struct datapath *dp, struct sk_buff *skb, do_output(dp, skb, prev_port); else kfree_skb(skb); - return err; + return 0; }