]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit6f061487f7d31427d7e8f420f366e5537ae16f43
treebba76e89a1ef9585f8105f61d2b72251b518701c
parent7ada60e367640fa8a4a349d9b105f235f346238b
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