]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: refactor name table translate function
authorJon Maloy <jon.maloy@ericsson.com>
Thu, 29 Mar 2018 21:20:42 +0000 (23:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Apr 2018 02:19:52 +0000 (22:19 -0400)
commit42e50dc05231a97a45ab99222921bee20fab2d49
treec7e892e9fd93ab583b9a88224f57e2538deffccc
parentc8d72b51e122af22368a7313168c49338d6e3418
tipc: refactor name table translate function

The function tipc_nametbl_translate() function is ugly and hard to
follow. This can be improved somewhat by introducing a stack variable
for holding the publication list to be used and re-ordering the if-
clauses for selection of algorithm.

Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/name_table.c