]> git.baikalelectronics.ru Git - kernel.git/commit
net: Remove duplicated midx check against 0
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 25 Aug 2020 12:10:37 +0000 (08:10 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Aug 2020 13:23:59 +0000 (06:23 -0700)
commit5dcb278328ecfca08660c55969feb009001831fb
tree21743c6cfead575fe940e1f8c77c1dd362e9f25a
parent7d8c260a45739b881778c06f0aff7a8504b96f14
net: Remove duplicated midx check against 0

Check midx against 0 is always equal to check midx against sk_bound_dev_if
when sk_bound_dev_if is known not equal to 0 in these case.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_sockglue.c