]> git.baikalelectronics.ru Git - kernel.git/commit
net: Eliminate duplicated codes by creating one new function in_dev_select_addr
authorGao Feng <fgao@ikuai8.com>
Fri, 10 Mar 2017 04:38:47 +0000 (12:38 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 06:27:09 +0000 (23:27 -0700)
commitb01a4260026cf3f2a7c1f66482b409b14971c529
tree7e051e9e2239617718f634c8aeda8f7aca8164b5
parentd331afbea6b5b29ec6ffe785e6965cdae5b8ef0b
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>
net/ipv4/devinet.c