From: Ben Pfaff Date: Fri, 19 Jun 2009 21:03:12 +0000 (-0700) Subject: datapath: Drop unneeded local variable initialization. X-Git-Tag: v0.90.3~18 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a5225dd627a7c64245aeaf509921fb71027af469;p=sliver-openvswitch.git datapath: Drop unneeded local variable initialization. --- diff --git a/datapath/actions.c b/datapath/actions.c index a037e4320..9b82f9e39 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; }