From: Tejun Heo Date: Thu, 28 Feb 2013 01:03:38 +0000 (-0800) Subject: firewire: don't use idr_remove_all() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=748689d40c2554b91197349a98ef084dc0fa70c8;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: Stefan Richter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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) wait_event(client->tx_flush_wait, !has_outbound_transactions(client)); idr_for_each(&client->resource_idr, shutdown_resource, client); - idr_remove_all(&client->resource_idr); idr_destroy(&client->resource_idr); list_for_each_entry_safe(event, next_event, &client->event_list, link)