mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 08:34:20 +08:00
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>
This commit is contained in:
parent
5a5e62da9b
commit
dbc9880fa7
@ -562,8 +562,6 @@ static void complete_transaction(struct fw_card *card, int rcode,
|
||||
|
||||
/* Drop the idr's reference */
|
||||
client_put(client);
|
||||
/* Drop the transaction callback's reference */
|
||||
client_put(client);
|
||||
}
|
||||
|
||||
static int init_request(struct client *client,
|
||||
@ -601,9 +599,6 @@ static int init_request(struct client *client,
|
||||
if (ret < 0)
|
||||
goto failed;
|
||||
|
||||
/* Get a reference for the transaction callback */
|
||||
client_get(client);
|
||||
|
||||
fw_send_request(client->device->card, &e->r.transaction,
|
||||
request->tcode, destination_id, request->generation,
|
||||
speed, request->offset, e->response.data,
|
||||
|
Loading…
Reference in New Issue
Block a user