diff options
author | Tejun Heo <tj@kernel.org> | 2013-02-27 20:03:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-27 22:10:13 -0500 |
commit | c767bf2ed3a3844a9d9341366cc388dab7c7ee05 (patch) | |
tree | 6cfcdd418224cbe120035297ef74fb04967477dd /drivers/atm | |
parent | 9bb26bc1ffa32ec983860a5a66b6f291a875e39d (diff) |
atm/nicstar: don't use idr_remove_all()
idr_destroy() can destroy idr by itself and idr_remove_all() is being
deprecated. Drop its usage.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Chas Williams <chas@cmf.nrl.navy.mil>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/atm')
-rw-r--r-- | drivers/atm/nicstar.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/atm/nicstar.c b/drivers/atm/nicstar.c index ed1d2b7f923b..628787ed999c 100644 --- a/drivers/atm/nicstar.c +++ b/drivers/atm/nicstar.c | |||
@@ -251,7 +251,6 @@ static void nicstar_remove_one(struct pci_dev *pcidev) | |||
251 | if (card->scd2vc[j] != NULL) | 251 | if (card->scd2vc[j] != NULL) |
252 | free_scq(card, card->scd2vc[j]->scq, card->scd2vc[j]->tx_vcc); | 252 | free_scq(card, card->scd2vc[j]->scq, card->scd2vc[j]->tx_vcc); |
253 | } | 253 | } |
254 | idr_remove_all(&card->idr); | ||
255 | idr_destroy(&card->idr); | 254 | idr_destroy(&card->idr); |
256 | pci_free_consistent(card->pcidev, NS_RSQSIZE + NS_RSQ_ALIGNMENT, | 255 | pci_free_consistent(card->pcidev, NS_RSQSIZE + NS_RSQ_ALIGNMENT, |
257 | card->rsq.org, card->rsq.dma); | 256 | card->rsq.org, card->rsq.dma); |