mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[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]>
This commit is contained in:
parent
9bb26bc1ff
commit
c767bf2ed3
1 changed files with 0 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue