firewire: cdev: remove unneeded idr_find() from complete_transaction()
commit3e204dfcaff0e7f6c4d9873fb8c9d948ec5ab2da
authorClemens Ladisch <clemens@ladisch.de>
Mon, 10 Jan 2011 16:28:27 +0000 (10 17:28 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 23 Jan 2011 11:31:00 +0000 (23 12:31 +0100)
tree77d823df1360861fb4edd7cdf0549ea849c8a001
parentf117a3e3004381ccadadc5156178c283815ca393
firewire: cdev: remove unneeded idr_find() from complete_transaction()

Outbound transactions are never aborted with release_client_resource(),
so it is not necessary for complete_transaction() to check whether the
resource is still registered.  Only shutdown_resource() can abort such
an transaction, and this is already handled with the in_shutdown check.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: "Stefan Richter" <stefanr@s5r6.in-berlin.de>
drivers/firewire/core-cdev.c