]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/firewire/core-cdev.c
Merge tag 'random_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso...
[karo-tx-linux.git] / drivers / firewire / core-cdev.c
index aee149bdf4c0339169d939eed797ef9e6ab521bf..a301fcf46e8821ba7d605582703df532f27f24b5 100644 (file)
@@ -1307,8 +1307,7 @@ static void iso_resource_work(struct work_struct *work)
         */
        if (r->todo == ISO_RES_REALLOC && !success &&
            !client->in_shutdown &&
-           idr_find(&client->resource_idr, r->resource.handle)) {
-               idr_remove(&client->resource_idr, r->resource.handle);
+           idr_remove(&client->resource_idr, r->resource.handle)) {
                client_put(client);
                free = true;
        }