Skip to content

Commit

Permalink
be2net: remove redundant code in be_worker()
Browse files Browse the repository at this point in the history
Signed-off-by: Sathya Perla <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Sathya Perla authored and davem330 committed Mar 31, 2011
1 parent 15d7218 commit 16da825
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions drivers/net/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1868,6 +1868,9 @@ static void be_worker(struct work_struct *work)
struct be_rx_obj *rxo;
int i;

if (!adapter->ue_detected && !lancer_chip(adapter))
be_detect_dump_ue(adapter);

/* when interrupts are not yet enabled, just reap any pending
* mcc completions */
if (!netif_running(adapter->netdev)) {
Expand All @@ -1880,9 +1883,6 @@ static void be_worker(struct work_struct *work)
be_cq_notify(adapter, mcc_obj->cq.id, false, mcc_compl);
}

if (!adapter->ue_detected && !lancer_chip(adapter))
be_detect_dump_ue(adapter);

goto reschedule;
}

Expand All @@ -1900,8 +1900,6 @@ static void be_worker(struct work_struct *work)
be_post_rx_frags(rxo, GFP_KERNEL);
}
}
if (!adapter->ue_detected && !lancer_chip(adapter))
be_detect_dump_ue(adapter);

reschedule:
schedule_delayed_work(&adapter->work, msecs_to_jiffies(1000));
Expand Down

0 comments on commit 16da825

Please sign in to comment.