mirror of
https://passt.top/passt
synced 2025-02-24 03:42:23 +00:00
netlink: Remove redundant check on nlmsg_type
In the loop within nl_addr_dup() we check and skip for any messages that aren't of type RTM_NEWADDR. This is a leftover that was missed in the recent big netlink cleanup. In fact we already check for the message type in the nl_foreach_oftype() macro, so the explicit test is redudant. Remove it. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
5ed4e034b2
commit
4b9f4c2513
Loading…
x
Reference in New Issue
Block a user