Remove not needed variable initialization.

And switch from int to bool while at it.

Reviewed by:	melifaro@
Differential Revision:	https://reviews.freebsd.org/D27725
MFC after:	1 week
Sponsored by:	Mellanox Technologies // NVIDIA Networking
This commit is contained in:
Hans Petter Selasky 2020-12-23 11:37:44 +01:00
parent 84eaf2ccc6
commit ddce63fcb6

View File

@ -287,7 +287,7 @@ ether_output(struct ifnet *ifp, struct mbuf *m,
char linkhdr[ETHER_HDR_LEN], *phdr;
struct ether_header *eh;
struct pf_mtag *t;
int loop_copy = 1;
bool loop_copy;
int hlen; /* link layer header length */
uint32_t pflags;
struct llentry *lle = NULL;
@ -357,7 +357,7 @@ ether_output(struct ifnet *ifp, struct mbuf *m,
update_mbuf_csumflags(m, m);
return (if_simloop(ifp, m, dst->sa_family, 0));
}
loop_copy = pflags & RT_MAY_LOOP;
loop_copy = (pflags & RT_MAY_LOOP) != 0;
/*
* Add local net header. If no space in first mbuf,