dccp/tcp: Remove NULL check for prev_saddr in inet_bhash2_update_saddr().
authorKuniyuki Iwashima <kuniyu@amazon.com>
Sat, 19 Nov 2022 01:49:12 +0000 (17:49 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 23 Nov 2022 04:15:36 +0000 (20:15 -0800)
commit8acdad37cd13ce777b0811b2d332314037fcefa8
tree04dc6eac9f18d7cb84f2d06713910667d147c3a0
parent77934dc6db0d2b111a8f2759e9ad2fb67f5cffa5
dccp/tcp: Remove NULL check for prev_saddr in inet_bhash2_update_saddr().

When we call inet_bhash2_update_saddr(), prev_saddr is always non-NULL.
Let's remove the unnecessary test.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Acked-by: Joanne Koong <joannelkoong@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/inet_hashtables.c