]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: remove ub->ubsock checks
authorXin Long <lucien.xin@gmail.com>
Mon, 1 Jul 2019 16:57:19 +0000 (00:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jul 2019 22:13:15 +0000 (15:13 -0700)
commit46f47725e97f66743bd494878d537ad7e7c931a5
treeac0f64e05fe8bdfecc390752134edb389b5f0fbc
parent831b43cb025eb845800970905f1c53a50f79b69e
tipc: remove ub->ubsock checks

Both tipc_udp_enable and tipc_udp_disable are called under rtnl_lock,
ub->ubsock could never be NULL in tipc_udp_disable and cleanup_bearer,
so remove the check.

Also remove the one in tipc_udp_enable by adding "free" label.

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