diff options
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_hw.c')
-rw-r--r-- | drivers/infiniband/hw/nes/nes_hw.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/nes/nes_hw.c b/drivers/infiniband/hw/nes/nes_hw.c index d42c9f435b1b..9e0895b45eb8 100644 --- a/drivers/infiniband/hw/nes/nes_hw.c +++ b/drivers/infiniband/hw/nes/nes_hw.c | |||
@@ -2679,11 +2679,9 @@ static void nes_process_mac_intr(struct nes_device *nesdev, u32 mac_number) | |||
2679 | } | 2679 | } |
2680 | } | 2680 | } |
2681 | if (nesadapter->phy_type[mac_index] == NES_PHY_TYPE_SFP_D) { | 2681 | if (nesadapter->phy_type[mac_index] == NES_PHY_TYPE_SFP_D) { |
2682 | if (nesdev->link_recheck) | ||
2683 | cancel_delayed_work(&nesdev->work); | ||
2684 | nesdev->link_recheck = 1; | 2682 | nesdev->link_recheck = 1; |
2685 | schedule_delayed_work(&nesdev->work, | 2683 | mod_delayed_work(system_wq, &nesdev->work, |
2686 | NES_LINK_RECHECK_DELAY); | 2684 | NES_LINK_RECHECK_DELAY); |
2687 | } | 2685 | } |
2688 | } | 2686 | } |
2689 | 2687 | ||