OSDN Git Service

tipc: relocate/coalesce node cast in tipc_named_node_up
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 2 Sep 2011 17:45:34 +0000 (13:45 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 18 Sep 2011 02:55:09 +0000 (22:55 -0400)
commit1c553bb52eb4c58333a843c0a5888d2329909f62
tree37f3a2273aad72ba7a7704b0af46a22fe14b5dd6
parent149ce37c8de72c64fc4f66c1b4cf7a0fb66b7ee9
tipc: relocate/coalesce node cast in tipc_named_node_up

Functions like this are called using unsigned longs from
function pointers.  In this case, the function is passed in
a node which is normally internally treated as a u32 by TIPC.

Rather than add more casts into this function in the future
for each added use of node within, move the cast to a single
place on a local.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/name_distr.c