diff options
author | Ihar Hrachyshka <ihrachys@redhat.com> | 2017-05-24 15:19:35 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-25 13:38:20 -0400 |
commit | 5990baaa6d7b437dfcf58b7021ca56b1d6b35869 (patch) | |
tree | 28108a28ba1863c260df7228e2a5f51c0f981113 /net/x25 | |
parent | ba615f675281d76fd19aa03558777f81fb6b6084 (diff) |
arp: fixed -Wuninitialized compiler warning
Commit 7d472a59c0e5ec117220a05de6b370447fb6cb66 ("arp: always override
existing neigh entries with gratuitous ARP") introduced a compiler
warning:
net/ipv4/arp.c:880:35: warning: 'addr_type' may be used uninitialized in
this function [-Wmaybe-uninitialized]
While the code logic seems to be correct and doesn't allow the variable
to be used uninitialized, and the warning is not consistently
reproducible, it's still worth fixing it for other people not to waste
time looking at the warning in case it pops up in the build environment.
Yes, compiler is probably at fault, but we will need to accommodate.
Fixes: 7d472a59c0e5 ("arp: always override existing neigh entries with gratuitous ARP")
Signed-off-by: Ihar Hrachyshka <ihrachys@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/x25')
0 files changed, 0 insertions, 0 deletions