projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bb26bc
)
atm/nicstar: don't use idr_remove_all()
author
Tejun Heo
<
[email protected]
>
Thu, 28 Feb 2013 01:03:36 +0000
(17:03 -0800)
committer
Linus Torvalds
<
[email protected]
>
Thu, 28 Feb 2013 03:10:13 +0000
(19:10 -0800)
idr_destroy() can destroy idr by itself and idr_remove_all() is being
deprecated. Drop its usage.
Signed-off-by: Tejun Heo <
[email protected]
>
Cc: Chas Williams <
[email protected]
>
Cc: David Miller <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/atm/nicstar.c
patch
|
blob
|
history
diff --git
a/drivers/atm/nicstar.c
b/drivers/atm/nicstar.c
index ed1d2b7f923b33334f4b07d288a63015071a3226..628787ed999c521d15800a38fb775746a6ae9735 100644
(file)
--- a/
drivers/atm/nicstar.c
+++ b/
drivers/atm/nicstar.c
@@
-251,7
+251,6
@@
static void nicstar_remove_one(struct pci_dev *pcidev)
if (card->scd2vc[j] != NULL)
free_scq(card, card->scd2vc[j]->scq, card->scd2vc[j]->tx_vcc);
}
- idr_remove_all(&card->idr);
idr_destroy(&card->idr);
pci_free_consistent(card->pcidev, NS_RSQSIZE + NS_RSQ_ALIGNMENT,
card->rsq.org, card->rsq.dma);