Skip to content

Commit dbc9880

Browse files
cladischStefan Richter
authored andcommitted
firewire: cdev: remove unneeded reference
For outbound transactions, the IDR's and the callback's references now have exactly the same lifetime, so we do not need both of them. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: "Stefan Richter" <stefanr@s5r6.in-berlin.de>
1 parent 5a5e62d commit dbc9880

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎drivers/firewire/core-cdev.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,6 @@ static void complete_transaction(struct fw_card *card, int rcode,
562562

563563
/* Drop the idr's reference */
564564
client_put(client);
565-
/* Drop the transaction callback's reference */
566-
client_put(client);
567565
}
568566

569567
static int init_request(struct client *client,
@@ -601,9 +599,6 @@ static int init_request(struct client *client,
601599
if (ret < 0)
602600
goto failed;
603601

604-
/* Get a reference for the transaction callback */
605-
client_get(client);
606-
607602
fw_send_request(client->device->card, &e->r.transaction,
608603
request->tcode, destination_id, request->generation,
609604
speed, request->offset, e->response.data,

0 commit comments

Comments
 (0)