提交 4b6d51ec 编写于 作者: S Stefan Richter

firewire: fw-ohci: shut up a superfluous compiler warning

New warning since commit ab88ca48,
"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: NStefan Richter <stefanr@s5r6.in-berlin.de>
上级 c74e92c2
...@@ -606,7 +606,7 @@ static int ...@@ -606,7 +606,7 @@ static int
at_context_queue_packet(struct context *ctx, struct fw_packet *packet) at_context_queue_packet(struct context *ctx, struct fw_packet *packet)
{ {
struct fw_ohci *ohci = ctx->ohci; struct fw_ohci *ohci = ctx->ohci;
dma_addr_t d_bus, payload_bus; dma_addr_t d_bus, uninitialized_var(payload_bus);
struct driver_data *driver_data; struct driver_data *driver_data;
struct descriptor *d, *last; struct descriptor *d, *last;
__le32 *header; __le32 *header;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册