mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-12 14:29:28 +00:00
Fix GCC compile warning: Variable(s) can be used uninitialized.
This commit is contained in:
parent
eff808e10a
commit
5098dbb20d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267632
@ -2607,10 +2607,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 *);
|
||||
|
Loading…
Reference in New Issue
Block a user