diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-02-28 10:36:21 -0500 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-03-13 16:35:17 -0400 |
commit | 8f19afb2dbc885befef2a4e7931dfcb51702a212 (patch) | |
tree | 95282135e7acd78d4e73a19c69466f8675507c57 /net/tipc/node.c | |
parent | e7b3acb6a85266dfd3e102b3d15b51b0ecd6bc2e (diff) |
tipc: cosmetic - function names are not to be full sentences
Function names like "tipc_node_has_redundant_links" are unweildy
and result in long lines even for simple lines. The "has" doesn't
contribute any value add, so dropping that is a slight step in the
right direction. This is a cosmetic change, basic result of:
for i in `grep -l tipc_node_has_ *` ; do sed -i s/tipc_node_has_/tipc_node_/ $i ; done
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/node.c')
-rw-r--r-- | net/tipc/node.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/tipc/node.c b/net/tipc/node.c index 66099cb1d6d6..ca09b33fb87f 100644 --- a/net/tipc/node.c +++ b/net/tipc/node.c | |||
@@ -223,19 +223,19 @@ void tipc_node_link_down(struct tipc_node *n_ptr, struct link *l_ptr) | |||
223 | node_lost_contact(n_ptr); | 223 | node_lost_contact(n_ptr); |
224 | } | 224 | } |
225 | 225 | ||
226 | int tipc_node_has_active_links(struct tipc_node *n_ptr) | 226 | int tipc_node_active_links(struct tipc_node *n_ptr) |
227 | { | 227 | { |
228 | return n_ptr->active_links[0] != NULL; | 228 | return n_ptr->active_links[0] != NULL; |
229 | } | 229 | } |
230 | 230 | ||
231 | int tipc_node_has_redundant_links(struct tipc_node *n_ptr) | 231 | int tipc_node_redundant_links(struct tipc_node *n_ptr) |
232 | { | 232 | { |
233 | return n_ptr->working_links > 1; | 233 | return n_ptr->working_links > 1; |
234 | } | 234 | } |
235 | 235 | ||
236 | int tipc_node_is_up(struct tipc_node *n_ptr) | 236 | int tipc_node_is_up(struct tipc_node *n_ptr) |
237 | { | 237 | { |
238 | return tipc_node_has_active_links(n_ptr); | 238 | return tipc_node_active_links(n_ptr); |
239 | } | 239 | } |
240 | 240 | ||
241 | struct tipc_node *tipc_node_attach_link(struct link *l_ptr) | 241 | struct tipc_node *tipc_node_attach_link(struct link *l_ptr) |