git: ddce63fcb6d0 - Remove not needed variable initialization. And switch from int to bool while at it.
Hans Petter Selasky
hselasky at FreeBSD.org
Wed Dec 23 11:05:56 UTC 2020
The branch main has been updated by hselasky:
URL: https://cgit.FreeBSD.org/src/commit/?id=ddce63fcb6d0fe03a5f62fe819e04192c74f27c0
commit ddce63fcb6d0fe03a5f62fe819e04192c74f27c0
Author: Hans Petter Selasky <hselasky at FreeBSD.org>
AuthorDate: 2020-12-23 10:37:44 +0000
Commit: Hans Petter Selasky <hselasky at FreeBSD.org>
CommitDate: 2020-12-23 11:04:46 +0000
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
---
sys/net/if_ethersubr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 8731cb5b0188..77c138d7a092 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -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,
More information about the dev-commits-src-main
mailing list