Skip to content

Commit

Permalink
firewire: a header cleanup
Browse files Browse the repository at this point in the history
fw_node() is not used (and not useful) outside fw-topology.c.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
  • Loading branch information
Stefan Richter committed Oct 16, 2007
1 parent a64408b commit e5f84f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 4 additions & 0 deletions drivers/firewire/fw-topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions drivers/firewire/fw-topology.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@ struct fw_node {
struct fw_node *ports[0];
};

static inline struct fw_node *
fw_node(struct list_head *l)
{
return list_entry(l, struct fw_node, link);
}

static inline struct fw_node *
fw_node_get(struct fw_node *node)
{
Expand Down

0 comments on commit e5f84f8

Please sign in to comment.