]> 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)
commit27051660c72209cadf1c0fd8f53c4e63ce90f9d2
tree84175cf9588684bd120882e3d616c0097187fcd4
parent249cd8673800533bfdf19bc700efecd3bf5ca0ef
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