diff options
| author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2025-03-19 16:06:50 -0700 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-03-25 07:32:00 -0700 |
| commit | b6af3890574a674d54216dacb66470fb7147b835 (patch) | |
| tree | 86186d59aa4d00d5c7bc67f3e96a8d5bef6ac999 /net/unix/sysctl_net_unix.c | |
| parent | nexthop: Check NLM_F_REPLACE and NHA_ID in rtm_new_nexthop(). (diff) | |
| download | linux-b6af3890574a674d54216dacb66470fb7147b835.tar.gz linux-b6af3890574a674d54216dacb66470fb7147b835.zip | |
nexthop: Remove redundant group len check in nexthop_create_group().
The number of NHA_GROUP entries is guaranteed to be non-zero in
nh_check_attr_group().
Let's remove the redundant check in nexthop_create_group().
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20250319230743.65267-6-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions
