Reduce unneeded code duplication.
This commit is contained in:
parent
d848592e1c
commit
185225ff52
@ -916,13 +916,6 @@ gif_set_tunnel(ifp, src, dst)
|
||||
if (odst)
|
||||
free((caddr_t)odst, M_IFADDR);
|
||||
|
||||
if (sc->gif_psrc && sc->gif_pdst)
|
||||
ifp->if_drv_flags |= IFF_DRV_RUNNING;
|
||||
else
|
||||
ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
|
||||
|
||||
return 0;
|
||||
|
||||
bad:
|
||||
if (sc->gif_psrc && sc->gif_pdst)
|
||||
ifp->if_drv_flags |= IFF_DRV_RUNNING;
|
||||
@ -953,9 +946,5 @@ gif_delete_tunnel(ifp)
|
||||
#ifdef INET6
|
||||
(void)in6_gif_detach(sc);
|
||||
#endif
|
||||
|
||||
if (sc->gif_psrc && sc->gif_pdst)
|
||||
ifp->if_drv_flags |= IFF_DRV_RUNNING;
|
||||
else
|
||||
ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
|
||||
ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user