From c722171a0322220b4746c9041dbb059f7f958fc9 Mon Sep 17 00:00:00 2001 From: yar Date: Thu, 29 Jun 2006 07:23:49 +0000 Subject: [PATCH] Reduce unneeded code duplication. --- sys/net/if_gif.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c index b602ce03807d..0bb7894e3f40 100644 --- a/sys/net/if_gif.c +++ b/sys/net/if_gif.c @@ -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; }