]> git.baikalelectronics.ru Git - kernel.git/commit
firewire: fw-sbp2: correctly dereference by container_of
authorJay Fenlason <fenlason@redhat.com>
Wed, 27 Jun 2007 20:04:33 +0000 (16:04 -0400)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Mon, 9 Jul 2007 22:07:46 +0000 (00:07 +0200)
commita8a077b643ec4864061c7c80d6895d52b73a262e
treebba76e89a1ef9585f8105f61d2b72251b518701c
parentca9fcd141a6ae2bade3acfa16945adc005b6c1d7
firewire: fw-sbp2: correctly dereference by container_of

Replace a cast with a container_of().  As long as nobody reorders the
structure elements, they do the same thing, but container_of() is more
readable.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> (added complete_command_orb)
Acked-by: Kristian Høgsberg <krh@redhat.com>
drivers/firewire/fw-sbp2.c