[PATCH 0/2] net: Use nlmsg_{multicast, unicast} that contain if statement

From: Yajun Deng
Date: Tue Jul 13 2021 - 08:37:24 EST


Patch1: use nlmsg_{multicast, unicast} instead of netlink_
{broadcast,unicast} in rtnetlink.
Patch2: The caller no need deal with the if statements and use
the rename function.

Yajun Deng (2):
rtnetlink: use nlmsg_{multicast, unicast} instead of
netlink_{broadcast,unicast}
net/sched: Remove unnecessary judgment statements

include/linux/rtnetlink.h | 2 +-
net/core/rtnetlink.c | 13 +++++++------
net/sched/act_api.c | 20 ++++++--------------
net/sched/cls_api.c | 28 +++++++++++-----------------
net/sched/sch_api.c | 18 ++++++------------
5 files changed, 31 insertions(+), 50 deletions(-)

--
2.32.0