Don't clear the unused SI_CHEAPCLONE flag in tap_create()/tuncreate().

Reviewed by:	kib
This commit is contained in:
davide 2013-09-07 13:50:13 +00:00
parent ec6382d0c2
commit 5545e24af3
2 changed files with 0 additions and 4 deletions

View File

@ -409,8 +409,6 @@ tapcreate(struct cdev *dev)
const char *name = NULL;
u_char eaddr[6];
dev->si_flags &= ~SI_CHEAPCLONE;
/* allocate driver storage and create device */
tp = malloc(sizeof(*tp), M_TAP, M_WAITOK | M_ZERO);
mtx_init(&tp->tap_mtx, "tap_mtx", NULL, MTX_DEF);

View File

@ -361,8 +361,6 @@ tuncreate(const char *name, struct cdev *dev)
struct tun_softc *sc;
struct ifnet *ifp;
dev->si_flags &= ~SI_CHEAPCLONE;
sc = malloc(sizeof(*sc), M_TUN, M_WAITOK | M_ZERO);
mtx_init(&sc->tun_mtx, "tun_mtx", NULL, MTX_DEF);
cv_init(&sc->tun_cv, "tun_condvar");