Re: [PATCH] net: Remove duplicated midx check against 0

2020-08-25 Thread David Miller
From: Miaohe Lin Date: Tue, 25 Aug 2020 08:10:37 -0400 > 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 Applied to net-next, thanks.

[PATCH] net: Remove duplicated midx check against 0

2020-08-25 Thread Miaohe Lin
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 --- net/ipv4/ip_sockglue.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/i