remove pointless recursive acquisition of port lock in cxgb_init_locked

This commit is contained in:
Kip Macy 2007-06-02 03:02:36 +00:00
parent d8c0f4dc21
commit f3ec953c8d

View File

@ -1377,10 +1377,8 @@ cxgb_init_locked(struct port_info *p)
callout_reset(&sc->cxgb_tick_ch, sc->params.stats_update_period * hz,
cxgb_tick, sc);
PORT_LOCK(p);
ifp->if_drv_flags |= IFF_DRV_RUNNING;
ifp->if_drv_flags &= ~IFF_DRV_OACTIVE;
PORT_UNLOCK(p);
}
static void