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)
commit8bc81c570831f5b739a1c8dfe547b828ef398dfb
tree84175cf9588684bd120882e3d616c0097187fcd4
parent18f3896dfd0e158576362812c60e4765f5678225
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