mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
genet: cnt here is write only and can be removed
Sponsored by: Netflix
This commit is contained in:
parent
b620928d54
commit
b66e766d57
1 changed files with 2 additions and 2 deletions
|
|
@ -1012,7 +1012,7 @@ gen_start_locked(struct gen_softc *sc)
|
|||
{
|
||||
struct mbuf *m;
|
||||
if_t ifp;
|
||||
int cnt, err;
|
||||
int err;
|
||||
|
||||
GEN_ASSERT_LOCKED(sc);
|
||||
|
||||
|
|
@ -1025,7 +1025,7 @@ gen_start_locked(struct gen_softc *sc)
|
|||
IFF_DRV_RUNNING)
|
||||
return;
|
||||
|
||||
for (cnt = 0; ; cnt++) {
|
||||
while (true) {
|
||||
m = if_dequeue(ifp);
|
||||
if (m == NULL)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue