/* release an RxRPC BSD socket on close() or equivalent  */
static int rxrpc_release(struct socket *sock)
/* release an RxRPC BSD socket on close() or equivalent  */
static int rxrpc_release(struct socket *sock)
{
	struct sock *sk = sock->sk;
	_enter("%p{%p}", sock, sk);
	if (!sk)
		return 0;
	sock->sk = NULL;
	return rxrpc_release_sock(sk);
}