tuntap: drop redundant if_mtu assignment in tuncreate

ether_ifattach will immediately clobber if_mtu with ETHERMTU anyways, just
let it happen.

MFC after:	1 week
This commit is contained in:
Kyle Evans 2020-07-16 15:02:11 +00:00
parent 39523b486b
commit cef5fc74c2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363252

View File

@ -965,7 +965,6 @@ tuncreate(struct cdev *dev)
ifp->if_capenable |= IFCAP_LINKSTATE;
if ((tp->tun_flags & TUN_L2) != 0) {
ifp->if_mtu = ETHERMTU;
ifp->if_init = tunifinit;
ifp->if_start = tunstart_l2;