diff options
author | Sathya Perla <sathya.perla@emulex.com> | 2011-03-21 16:49:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-31 00:39:20 -0400 |
commit | 16da8250df36547269d20a3d53daa11c79f59637 (patch) | |
tree | 7c483c80bd9ec84800edac2b4917a8d6b8c73197 | |
parent | 15d721847f56f32fe9fd43d34db1b32b13de78dc (diff) |
be2net: remove redundant code in be_worker()
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/benet/be_main.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 6616300f6070..3bf79d148c24 100644 --- a/drivers/net/benet/be_main.c +++ b/drivers/net/benet/be_main.c | |||
@@ -1868,6 +1868,9 @@ static void be_worker(struct work_struct *work) | |||
1868 | struct be_rx_obj *rxo; | 1868 | struct be_rx_obj *rxo; |
1869 | int i; | 1869 | int i; |
1870 | 1870 | ||
1871 | if (!adapter->ue_detected && !lancer_chip(adapter)) | ||
1872 | be_detect_dump_ue(adapter); | ||
1873 | |||
1871 | /* when interrupts are not yet enabled, just reap any pending | 1874 | /* when interrupts are not yet enabled, just reap any pending |
1872 | * mcc completions */ | 1875 | * mcc completions */ |
1873 | if (!netif_running(adapter->netdev)) { | 1876 | if (!netif_running(adapter->netdev)) { |
@@ -1880,9 +1883,6 @@ static void be_worker(struct work_struct *work) | |||
1880 | be_cq_notify(adapter, mcc_obj->cq.id, false, mcc_compl); | 1883 | be_cq_notify(adapter, mcc_obj->cq.id, false, mcc_compl); |
1881 | } | 1884 | } |
1882 | 1885 | ||
1883 | if (!adapter->ue_detected && !lancer_chip(adapter)) | ||
1884 | be_detect_dump_ue(adapter); | ||
1885 | |||
1886 | goto reschedule; | 1886 | goto reschedule; |
1887 | } | 1887 | } |
1888 | 1888 | ||
@@ -1900,8 +1900,6 @@ static void be_worker(struct work_struct *work) | |||
1900 | be_post_rx_frags(rxo, GFP_KERNEL); | 1900 | be_post_rx_frags(rxo, GFP_KERNEL); |
1901 | } | 1901 | } |
1902 | } | 1902 | } |
1903 | if (!adapter->ue_detected && !lancer_chip(adapter)) | ||
1904 | be_detect_dump_ue(adapter); | ||
1905 | 1903 | ||
1906 | reschedule: | 1904 | reschedule: |
1907 | schedule_delayed_work(&adapter->work, msecs_to_jiffies(1000)); | 1905 | schedule_delayed_work(&adapter->work, msecs_to_jiffies(1000)); |