]> git.ipfire.org Git - thirdparty/linux.git/commit
ipv6: mcast: Remove unnecessary null check in ip6_mc_find_dev()
authorYue Haibing <yuehaibing@huawei.com>
Mon, 14 Jul 2025 08:17:32 +0000 (16:17 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Jul 2025 23:34:01 +0000 (16:34 -0700)
commitce6030afe4590221ff40e3e873600c65e7be56e7
tree066fb081f7abc29878050bcf4e2ec4256833592a
parent5cc7fce3493c8627c74260de5b2479da6d508277
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>
net/ipv6/mcast.c