diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2018-02-05 05:51:37 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2018-02-05 05:51:37 +0000 |
commit | 7ed0831923db7da247fd6bc2ee309eeec3f74d0a (patch) | |
tree | c58845ad8ff1e1abc59e91b802dbcca1ce018b64 | |
parent | 286a5a1c7eb357dbae1a1dfb26851d310afe4347 (diff) |
Notes
-rw-r--r-- | sys/dev/etherswitch/arswitch/arswitch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/etherswitch/arswitch/arswitch.c b/sys/dev/etherswitch/arswitch/arswitch.c index 27d8fb06974c..d582c097c556 100644 --- a/sys/dev/etherswitch/arswitch/arswitch.c +++ b/sys/dev/etherswitch/arswitch/arswitch.c @@ -1187,7 +1187,7 @@ arswitch_atu_fetch_table(device_t dev, etherswitch_atu_table_t *table) err = sc->hal.arswitch_atu_fetch_table(sc, NULL, 0); /* fetch - ideally yes we'd fetch into a separate table then switch */ - while (err != -1 && nitems < sc->atu.size) { + while (err == 0 && nitems < sc->atu.size) { err = sc->hal.arswitch_atu_fetch_table(sc, &sc->atu.entries[nitems], 1); if (err == 0) { |