From e5f84f82bdc5f8a5ce3d33aa6a2cc727fc08bda6 Mon Sep 17 00:00:00 2001 From: Stefan Richter Date: Sun, 7 Oct 2007 02:10:11 +0200 Subject: firewire: a header cleanup fw_node() is not used (and not useful) outside fw-topology.c. Signed-off-by: Stefan Richter --- drivers/firewire/fw-topology.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/firewire/fw-topology.c') diff --git a/drivers/firewire/fw-topology.c b/drivers/firewire/fw-topology.c index 39e5cd12aa5..45e6f9bfe99 100644 --- a/drivers/firewire/fw-topology.c +++ b/drivers/firewire/fw-topology.c @@ -152,6 +152,10 @@ static void update_hop_count(struct fw_node *node) node->max_hops = max(max_child_hops, depths[0] + depths[1] + 2); } +static inline struct fw_node *fw_node(struct list_head *l) +{ + return list_entry(l, struct fw_node, link); +} /** * build_tree - Build the tree representation of the topology -- cgit v1.2.3-70-g09d2