Silence a gcc warning in a more canonical way (evl = NULL rather than &evl).
I saw warnings here at one point on the arm build.
This commit is contained in:
parent
b6af0abdc4
commit
c7b8e2f50c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170561
@ -341,7 +341,7 @@ ng_vlan_rcvdata(hook_p hook, item_p item)
|
||||
{
|
||||
const priv_p priv = NG_NODE_PRIVATE(NG_HOOK_NODE(hook));
|
||||
struct ether_header *eh;
|
||||
struct ether_vlan_header *evl;
|
||||
struct ether_vlan_header *evl = NULL;
|
||||
int error;
|
||||
u_int16_t vlan;
|
||||
struct mbuf *m;
|
||||
@ -368,7 +368,6 @@ ng_vlan_rcvdata(hook_p hook, item_p item)
|
||||
* Ethernet frame; tag is stored out-of-band.
|
||||
*/
|
||||
vlan = EVL_VLANOFTAG(m->m_pkthdr.ether_vtag);
|
||||
(void)&evl; /* XXX silence GCC */
|
||||
} else {
|
||||
if (m->m_len < sizeof(*evl) &&
|
||||
(m = m_pullup(m, sizeof(*evl))) == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user