net: fix uninitialized variable warning

This commit is contained in:
Matt Macy 2018-05-19 19:00:04 +00:00
parent 1f52c1db90
commit f6cb0dea4c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333886
2 changed files with 3 additions and 3 deletions

View File

@ -2967,7 +2967,7 @@ int
ifioctl(struct socket *so, u_long cmd, caddr_t data, struct thread *td)
{
#ifdef COMPAT_FREEBSD32
caddr_t saved_data;
caddr_t saved_data = NULL;
struct ifmediareq ifmr;
#endif
struct ifmediareq *ifmrp;

View File

@ -2599,8 +2599,7 @@ iflib_rxeof(iflib_rxq_t rxq, qidx_t budget)
iflib_fl_t fl;
struct ifnet *ifp;
int lro_enabled;
bool lro_possible = false;
bool v4_forwarding, v6_forwarding;
bool v4_forwarding, v6_forwarding, lro_possible;
/*
* XXX early demux data packets so that if_input processing only handles
@ -2608,6 +2607,7 @@ iflib_rxeof(iflib_rxq_t rxq, qidx_t budget)
*/
struct mbuf *m, *mh, *mt, *mf;
lro_possible = v4_forwarding = v6_forwarding = false;
ifp = ctx->ifc_ifp;
mh = mt = NULL;
MPASS(budget > 0);