Re: [tipc-discussion] [PATCH net-next] tipc: remove ub->ubsock checks

2019-07-02 Thread David Miller
From: Xin Long Date: Tue, 2 Jul 2019 00:57:19 +0800 > 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. > >

[tipc-discussion] [PATCH net-next] tipc: remove ub->ubsock checks

2019-07-01 Thread Xin Long
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 --- net/tipc/udp_media.c | 17