Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

firewire: a header cleanup

fw_node() is not used (and not useful) outside fw-topology.c.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>

+4 -6
+4
drivers/firewire/fw-topology.c
··· 152 152 node->max_hops = max(max_child_hops, depths[0] + depths[1] + 2); 153 153 } 154 154 155 + static inline struct fw_node *fw_node(struct list_head *l) 156 + { 157 + return list_entry(l, struct fw_node, link); 158 + } 155 159 156 160 /** 157 161 * build_tree - Build the tree representation of the topology
-6
drivers/firewire/fw-topology.h
··· 51 51 }; 52 52 53 53 static inline struct fw_node * 54 - fw_node(struct list_head *l) 55 - { 56 - return list_entry(l, struct fw_node, link); 57 - } 58 - 59 - static inline struct fw_node * 60 54 fw_node_get(struct fw_node *node) 61 55 { 62 56 atomic_inc(&node->ref_count);