Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

firewire: 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: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Tejun Heo and committed by
Linus Torvalds
748689d4 9d609166

-1
-1
drivers/firewire/core-cdev.c
··· 1779 1779 wait_event(client->tx_flush_wait, !has_outbound_transactions(client)); 1780 1780 1781 1781 idr_for_each(&client->resource_idr, shutdown_resource, client); 1782 - idr_remove_all(&client->resource_idr); 1783 1782 idr_destroy(&client->resource_idr); 1784 1783 1785 1784 list_for_each_entry_safe(event, next_event, &client->event_list, link)