diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-10-21 05:20:07 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-10-22 13:48:56 -0400 |
commit | 4b6d51ec62d9c57432430528d6293605794a9f1b (patch) | |
tree | 5612302d7f53db9caa7297f1041e1d7785e62f2f /drivers/firewire | |
parent | c74e92c209cf30ae6003e042e7c017eb6c370b64 (diff) |
firewire: fw-ohci: shut up a superfluous compiler warning
New warning since commit ab88ca488b8af66c3defa165874e81e695319a19,
"firewire: fw-ohci: missing dma_unmap_single":
drivers/firewire/fw-ohci.c: In function 'at_context_transmit':
drivers/firewire/fw-ohci.c:609: warning: 'payload_bus' may be used
uninitialized in this function
Access to payload_bus is conditional on packet->payload_length > 0,
and that won't change while in at_context_queue_packet.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire')
-rw-r--r-- | drivers/firewire/fw-ohci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/fw-ohci.c b/drivers/firewire/fw-ohci.c index e4b9a7d17afc..67588326ae56 100644 --- a/drivers/firewire/fw-ohci.c +++ b/drivers/firewire/fw-ohci.c | |||
@@ -606,7 +606,7 @@ static int | |||
606 | at_context_queue_packet(struct context *ctx, struct fw_packet *packet) | 606 | at_context_queue_packet(struct context *ctx, struct fw_packet *packet) |
607 | { | 607 | { |
608 | struct fw_ohci *ohci = ctx->ohci; | 608 | struct fw_ohci *ohci = ctx->ohci; |
609 | dma_addr_t d_bus, payload_bus; | 609 | dma_addr_t d_bus, uninitialized_var(payload_bus); |
610 | struct driver_data *driver_data; | 610 | struct driver_data *driver_data; |
611 | struct descriptor *d, *last; | 611 | struct descriptor *d, *last; |
612 | __le32 *header; | 612 | __le32 *header; |