diff options
author | bryanv <bryanv@FreeBSD.org> | 2014-08-28 04:20:24 +0000 |
---|---|---|
committer | bryanv <bryanv@FreeBSD.org> | 2014-08-28 04:20:24 +0000 |
commit | 7cea24544f5c263fc82481e8aa317d9e40bdbaea (patch) | |
tree | 34def7721736766859b7776354d5ad41837c4629 /sys/dev/vmware | |
parent | 588247cb3e5f3e7badc188c2f5b0d93c78d1c141 (diff) | |
download | FreeBSD-src-7cea24544f5c263fc82481e8aa317d9e40bdbaea.zip FreeBSD-src-7cea24544f5c263fc82481e8aa317d9e40bdbaea.tar.gz |
MFC r267632:
Fix GCC compile warning: Variable(s) can be used uninitialized.
PR: 193076
Diffstat (limited to 'sys/dev/vmware')
-rw-r--r-- | sys/dev/vmware/vmxnet3/if_vmx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/vmware/vmxnet3/if_vmx.c b/sys/dev/vmware/vmxnet3/if_vmx.c index a02099d..5767892 100644 --- a/sys/dev/vmware/vmxnet3/if_vmx.c +++ b/sys/dev/vmware/vmxnet3/if_vmx.c @@ -2619,10 +2619,12 @@ vmxnet3_txq_offload_ctx(struct vmxnet3_txqueue *txq, struct mbuf *m, struct ether_vlan_header *evh; int offset; #if defined(INET) - struct ip *ip, iphdr; + struct ip *ip = NULL; + struct ip iphdr; #endif #if defined(INET6) - struct ip6_hdr *ip6, ip6hdr; + struct ip6_hdr *ip6 = NULL; + struct ip6_hdr ip6hdr; #endif evh = mtod(m, struct ether_vlan_header *); |