All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next-2.6] bnx2: remove cancel_work_sync() from remove_one
@ 2010-12-14 16:09 Tejun Heo
  2010-12-14 17:48 ` Michael Chan
  0 siblings, 1 reply; 7+ messages in thread
From: Tejun Heo @ 2010-12-14 16:09 UTC (permalink / raw)
  To: lkml, David S. Miller, Michael Chan, netdev

Michael pointed out that bnx2_close() already cancels bp->reset_task
and thus it is guaranteed to be idle when bnx2_remove_one() is called.
Remove the unnecessary cancel_work_sync() in remove_one.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Michael Chan <mchan@broadcom.com>
---
 drivers/net/bnx2.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index 5c811f3..85fc2c8 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -8393,8 +8393,6 @@ bnx2_remove_one(struct pci_dev *pdev)
 	struct net_device *dev = pci_get_drvdata(pdev);
 	struct bnx2 *bp = netdev_priv(dev);

-	cancel_work_sync(&bp->reset_task);
-
 	unregister_netdev(dev);

 	if (bp->mips_firmware)

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-12-22  8:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-14 16:09 [PATCH net-next-2.6] bnx2: remove cancel_work_sync() from remove_one Tejun Heo
2010-12-14 17:48 ` Michael Chan
2010-12-15 13:52   ` Tejun Heo
2010-12-20 21:11     ` David Miller
2010-12-21 10:51       ` Tejun Heo
2010-12-21 20:20         ` David Miller
2010-12-22  8:48           ` Tejun Heo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.