]> git.baikalelectronics.ru Git - kernel.git/commit
firewire: fw-ohci: shut up a superfluous compiler warning
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 21 Oct 2007 09:20:07 +0000 (11:20 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Mon, 22 Oct 2007 17:48:56 +0000 (19:48 +0200)
commit0a013fe286d0b46859a66b554fa69267a6e4f348
tree5612302d7f53db9caa7297f1041e1d7785e62f2f
parent6cb1693fc42b82e60f72c4faa86228832088807b
firewire: fw-ohci: shut up a superfluous compiler warning

New warning since commit 98f9fc55d776966b66f250994be0e4910328839c,
"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>
drivers/firewire/fw-ohci.c