Re: [PATCH] net: ipv4: route.c: Remove unnecessary {else} if()

2021-03-23 Thread David Ahern
subject line should have net-next as the target branch On 3/23/21 4:20 AM, Yejune Deng wrote: > Put if and else if together, and remove unnecessary judgments, because > it's caller can make sure it is true. And add likely() in > ipv4_confirm_neigh(). > > Signed-off-by: Yejune Deng > --- > net/

[PATCH] net: ipv4: route.c: Remove unnecessary {else} if()

2021-03-23 Thread Yejune Deng
Put if and else if together, and remove unnecessary judgments, because it's caller can make sure it is true. And add likely() in ipv4_confirm_neigh(). Signed-off-by: Yejune Deng --- net/ipv4/route.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/net/ipv4/