diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2011-01-10 11:29:03 -0500 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2011-01-23 06:31:01 -0500 |
commit | dbc9880fa731fe2482a706bbabb4165269233063 (patch) | |
tree | 288e46fb5df60dc582e74fd20565a802bb31502d /drivers/firewire | |
parent | 5a5e62da9be255439e8ce59f96828775b7b33374 (diff) |
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>
Diffstat (limited to 'drivers/firewire')
-rw-r--r-- | drivers/firewire/core-cdev.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/firewire/core-cdev.c b/drivers/firewire/core-cdev.c index 5485c0877b81..e0c13fb3ae22 100644 --- a/drivers/firewire/core-cdev.c +++ b/drivers/firewire/core-cdev.c | |||
@@ -562,8 +562,6 @@ static void complete_transaction(struct fw_card *card, int rcode, | |||
562 | 562 | ||
563 | /* Drop the idr's reference */ | 563 | /* Drop the idr's reference */ |
564 | client_put(client); | 564 | client_put(client); |
565 | /* Drop the transaction callback's reference */ | ||
566 | client_put(client); | ||
567 | } | 565 | } |
568 | 566 | ||
569 | static int init_request(struct client *client, | 567 | static int init_request(struct client *client, |
@@ -601,9 +599,6 @@ static int init_request(struct client *client, | |||
601 | if (ret < 0) | 599 | if (ret < 0) |
602 | goto failed; | 600 | goto failed; |
603 | 601 | ||
604 | /* Get a reference for the transaction callback */ | ||
605 | client_get(client); | ||
606 | |||
607 | fw_send_request(client->device->card, &e->r.transaction, | 602 | fw_send_request(client->device->card, &e->r.transaction, |
608 | request->tcode, destination_id, request->generation, | 603 | request->tcode, destination_id, request->generation, |
609 | speed, request->offset, e->response.data, | 604 | speed, request->offset, e->response.data, |