mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 12:28:58 +00:00
Fix a couple of bogus return values in previous commit.
Submitted by: "Vladimir B. " Grebenschikov <vova@sw.ru> Pointy hat to: brooks
This commit is contained in:
parent
177142e458
commit
51e2390d61
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102130
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user