net: fix uninitialized variable warning
This commit is contained in:
parent
1f52c1db90
commit
f6cb0dea4c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333886
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user