mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 15:40:44 +00:00
Consolidate two adjacent conditional blocks
I actually believe the code in question should be elsewhere (in the preceding function). MFC after: 1 week
This commit is contained in:
parent
e019908ee7
commit
d0a2acd430
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=151298
|
@ -362,14 +362,10 @@ bad: if (m != NULL)
|
|||
int
|
||||
ether_output_frame(struct ifnet *ifp, struct mbuf *m)
|
||||
{
|
||||
int error;
|
||||
#if defined(INET) || defined(INET6)
|
||||
struct ip_fw *rule = ip_dn_claim_rule(m);
|
||||
#else
|
||||
void *rule = NULL;
|
||||
#endif
|
||||
int error;
|
||||
|
||||
#if defined(INET) || defined(INET6)
|
||||
if (IPFW_LOADED && ether_ipfw != 0) {
|
||||
if (ether_ipfw_chk(&m, ifp, &rule, 0) == 0) {
|
||||
if (m) {
|
||||
|
|
Loading…
Reference in a new issue