commit | 8b57fd1ec13e22b3e722891ff7a6e6ccaf286779 | [log] [tgz] |
---|---|---|
author | Gao Feng <fgao@ikuai8.com> | Fri Mar 10 12:38:47 2017 +0800 |
committer | David S. Miller <davem@davemloft.net> | Sun Mar 12 23:27:09 2017 -0700 |
tree | 7e051e9e2239617718f634c8aeda8f7aca8164b5 | |
parent | 81663bee1676d1ecbd3281e2c752a1b6f6e133b9 [diff] |
net: Eliminate duplicated codes by creating one new function in_dev_select_addr There are two duplicated loops codes which used to select right address in current codes. Now eliminate these codes by creating one new function in_dev_select_addr. Signed-off-by: Gao Feng <fgao@ikuai8.com> Signed-off-by: David S. Miller <davem@davemloft.net>