diff options
| author | Brooks Davis <brooks@FreeBSD.org> | 2002-08-19 19:22:41 +0000 |
|---|---|---|
| committer | Brooks Davis <brooks@FreeBSD.org> | 2002-08-19 19:22:41 +0000 |
| commit | 51e2390d613fc232fb992c6e548704f8937c565a (patch) | |
| tree | 45b63df7a27d502b2f53ed2c98c282e34ccc3ab0 /sys | |
| parent | 177142e4589587ecfd488903c34a164997a173a8 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/net/if_ppp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index 80bfff72d2c1a..05916c525245a 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -220,7 +220,7 @@ ppp_clone_create(struct if_clone *ifc, int unit) bpfattach(&sc->sc_if, DLT_PPP, PPP_HDRLEN); LIST_INSERT_HEAD(&ppp_softc_list, sc, sc_list); - return 1; + return (0); } static void @@ -263,8 +263,7 @@ ppp_modevent(module_t mod, int type, void *data) while (!LIST_EMPTY(&ppp_softc_list)) ppp_clone_destroy( &LIST_FIRST(&ppp_softc_list)->sc_if); - - return EINVAL; + break; } return 0; } |
