aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/firewire/fw-cdev.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/firewire/fw-cdev.c b/drivers/firewire/fw-cdev.c
index c54e019c9586..95a207545eb3 100644
--- a/drivers/firewire/fw-cdev.c
+++ b/drivers/firewire/fw-cdev.c
@@ -549,15 +549,11 @@ static int init_request(struct client *client,
549 client_get(client); 549 client_get(client);
550 550
551 fw_send_request(client->device->card, &e->r.transaction, 551 fw_send_request(client->device->card, &e->r.transaction,
552 request->tcode & 0x1f, destination_id, 552 request->tcode, destination_id, request->generation,
553 request->generation, speed, request->offset, 553 speed, request->offset, e->response.data,
554 e->response.data, request->length, 554 request->length, complete_transaction, e);
555 complete_transaction, e); 555 return 0;
556 556
557 if (request->data)
558 return sizeof(request) + request->length;
559 else
560 return sizeof(request);
561 failed: 557 failed:
562 kfree(e); 558 kfree(e);
563 559