diff options
author | Tejun Heo <tj@kernel.org> | 2013-02-27 20:03:38 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-27 22:10:13 -0500 |
commit | 748689d40c2554b91197349a98ef084dc0fa70c8 (patch) | |
tree | ca3571cf302cd2bd04f40d22e0d55ea1a1088900 | |
parent | 9d60916677603c0bbc6cdc564307744a90586bc9 (diff) |
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>
-rw-r--r-- | drivers/firewire/core-cdev.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/firewire/core-cdev.c b/drivers/firewire/core-cdev.c index f8d22872d753..68c31381cd03 100644 --- a/drivers/firewire/core-cdev.c +++ b/drivers/firewire/core-cdev.c | |||
@@ -1779,7 +1779,6 @@ static int fw_device_op_release(struct inode *inode, struct file *file) | |||
1779 | wait_event(client->tx_flush_wait, !has_outbound_transactions(client)); | 1779 | wait_event(client->tx_flush_wait, !has_outbound_transactions(client)); |
1780 | 1780 | ||
1781 | idr_for_each(&client->resource_idr, shutdown_resource, client); | 1781 | idr_for_each(&client->resource_idr, shutdown_resource, client); |
1782 | idr_remove_all(&client->resource_idr); | ||
1783 | idr_destroy(&client->resource_idr); | 1782 | idr_destroy(&client->resource_idr); |
1784 | 1783 | ||
1785 | list_for_each_entry_safe(event, next_event, &client->event_list, link) | 1784 | list_for_each_entry_safe(event, next_event, &client->event_list, link) |