mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 14:42:08 +02:00
ipv6: mcast: Remove unnecessary null check in ip6_mc_find_dev()
These is no need to check null for idev before return NULL. Signed-off-by: Yue Haibing <yuehaibing@huawei.com> Reviewed-by: Simon Horman <horms@kernel.org> Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> Link: https://patch.msgid.link/20250714081732.3109764-1-yuehaibing@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
5cc7fce349
commit
ce6030afe4
|
|
@ -329,9 +329,6 @@ static struct inet6_dev *ip6_mc_find_dev(struct net *net,
|
|||
idev = in6_dev_get(dev);
|
||||
dev_put(dev);
|
||||
|
||||
if (!idev)
|
||||
return NULL;
|
||||
|
||||
return idev;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user