]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: remove the unnecessary msg->req check from tipc_nl_compat_bearer_set
authorXin Long <lucien.xin@gmail.com>
Mon, 24 Jun 2019 08:02:42 +0000 (16:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jun 2019 15:56:20 +0000 (08:56 -0700)
commit70a4a69286f217805fdc4fa431b973ccda96588f
tree84175cf9588684bd120882e3d616c0097187fcd4
parenta79b517d3635545c874bbff66f4c4b41558f039c
tipc: remove the unnecessary msg->req check from tipc_nl_compat_bearer_set

tipc_nl_compat_bearer_set() is only called by tipc_nl_compat_link_set()
which already does the check for msg->req check, so remove it from
tipc_nl_compat_bearer_set(), and do the same in tipc_nl_compat_media_set().

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/netlink_compat.c