summaryrefslogtreecommitdiff
path: root/datapath
diff options
context:
space:
mode:
authorJesse Gross <jesse@nicira.com>2011-02-04 13:15:18 -0800
committerJesse Gross <jesse@nicira.com>2011-02-04 15:04:41 -0800
commitee3cdc0028ad4c5a665075fe9ce35c79b5cbbeb1 (patch)
treed23cea3930eb1695fd6d78b83e7ce046e1977448 /datapath
parent16d2551857f26a309a873d904a47a767ee0875d6 (diff)
downloadopenvswitch-ee3cdc0028ad4c5a665075fe9ce35c79b5cbbeb1.tar.gz
tunneling: Fix uninitialized variable warning in check_mtu.
The MTU is only needed if we are doing PMTUD but some compilers complain that it could be used uninitialized. Reported-by: Justin Pettit <jpettit@nicira.com> Signed-off-by: Jesse Gross <jesse@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'datapath')
-rw-r--r--datapath/tunnel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath/tunnel.c b/datapath/tunnel.c
index 6d0e7b9c6..7bf46e07e 100644
--- a/datapath/tunnel.c
+++ b/datapath/tunnel.c
@@ -717,7 +717,7 @@ static bool check_mtu(struct sk_buff *skb,
{
bool pmtud = mutable->flags & TNL_F_PMTUD;
__be16 frag_off = 0;
- int mtu;
+ int mtu = 0;
if (pmtud) {
frag_off = htons(IP_DF);