RDMA/cxgb4: Remove db_drop_task

Unloading iw_cxgb4 can crash due to the unload code trying to use
db_drop_task, which is uninitialized.  So remove this dead code.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
This commit is contained in:
Steve Wise 2011-03-11 22:30:32 +00:00 committed by Roland Dreier
parent b52fe09e33
commit 2942813739
2 changed files with 0 additions and 2 deletions

View File

@ -368,7 +368,6 @@ static void c4iw_rdev_close(struct c4iw_rdev *rdev)
static void c4iw_remove(struct c4iw_dev *dev) static void c4iw_remove(struct c4iw_dev *dev)
{ {
PDBG("%s c4iw_dev %p\n", __func__, dev); PDBG("%s c4iw_dev %p\n", __func__, dev);
cancel_delayed_work_sync(&dev->db_drop_task);
list_del(&dev->entry); list_del(&dev->entry);
if (dev->registered) if (dev->registered)
c4iw_unregister_device(dev); c4iw_unregister_device(dev);

View File

@ -176,7 +176,6 @@ struct c4iw_dev {
struct idr mmidr; struct idr mmidr;
spinlock_t lock; spinlock_t lock;
struct list_head entry; struct list_head entry;
struct delayed_work db_drop_task;
struct dentry *debugfs_root; struct dentry *debugfs_root;
u8 registered; u8 registered;
}; };