Permalink
Browse files

ixgbe: Remove useless locking directives

  • Loading branch information...
1 parent 2d86ded commit ad6f6c40284a0b4790621c49bc9509a40dd892cf François Tigeot committed Sep 29, 2012
Showing with 3 additions and 6 deletions.
  1. +3 −6 sys/dev/netif/ixgbe/ixgbe.c
View
9 sys/dev/netif/ixgbe/ixgbe.c
@@ -1500,17 +1500,16 @@ ixgbe_media_status(struct ifnet * ifp, struct ifmediareq * ifmr)
{
struct adapter *adapter = ifp->if_softc;
+ ASSERT_IFNET_SERIALIZED_ALL(ifp);
+
INIT_DEBUGOUT("ixgbe_media_status: begin");
- IXGBE_CORE_LOCK(adapter);
ixgbe_update_link_status(adapter);
ifmr->ifm_status = IFM_AVALID;
ifmr->ifm_active = IFM_ETHER;
- if (!adapter->link_active) {
- IXGBE_CORE_UNLOCK(adapter);
+ if (!adapter->link_active)
return;
- }
ifmr->ifm_status |= IFM_ACTIVE;
@@ -1526,8 +1525,6 @@ ixgbe_media_status(struct ifnet * ifp, struct ifmediareq * ifmr)
break;
}
- IXGBE_CORE_UNLOCK(adapter);
-
return;
}

0 comments on commit ad6f6c4

Please sign in to comment.