rxrpc: Adjust some whitespace and comments
Remove some excess whitespace, insert some missing spaces and adjust a couple of comments. Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
parent
351c1e6486
commit
b4f1342f91
|
@ -142,7 +142,7 @@ static int rxrpc_bind(struct socket *sock, struct sockaddr *saddr, int len)
|
|||
|
||||
memcpy(&rx->srx, srx, sizeof(rx->srx));
|
||||
|
||||
/* find a local transport endpoint if we don't have one already */
|
||||
/* Find or create a local transport endpoint to use */
|
||||
local = rxrpc_lookup_local(&rx->srx);
|
||||
if (IS_ERR(local)) {
|
||||
ret = PTR_ERR(local);
|
||||
|
@ -297,7 +297,6 @@ struct rxrpc_call *rxrpc_kernel_begin_call(struct socket *sock,
|
|||
|
||||
if (!srx)
|
||||
srx = &rx->srx;
|
||||
|
||||
if (!key)
|
||||
key = rx->key;
|
||||
if (key && !key->payload.data[0])
|
||||
|
@ -319,7 +318,6 @@ out_notrans:
|
|||
_leave(" = %p", call);
|
||||
return call;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(rxrpc_kernel_begin_call);
|
||||
|
||||
/**
|
||||
|
@ -335,7 +333,6 @@ void rxrpc_kernel_end_call(struct rxrpc_call *call)
|
|||
rxrpc_remove_user_ID(call->socket, call);
|
||||
rxrpc_put_call(call);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(rxrpc_kernel_end_call);
|
||||
|
||||
/**
|
||||
|
@ -616,7 +613,7 @@ static int rxrpc_create(struct net *net, struct socket *sock, int protocol,
|
|||
if (!net_eq(net, &init_net))
|
||||
return -EAFNOSUPPORT;
|
||||
|
||||
/* we support transport protocol UDP only */
|
||||
/* we support transport protocol UDP/UDP6 only */
|
||||
if (protocol != PF_INET)
|
||||
return -EPROTONOSUPPORT;
|
||||
|
||||
|
|
|
@ -415,7 +415,7 @@ out:
|
|||
}
|
||||
|
||||
/*
|
||||
* handle rejectance of a call by userspace
|
||||
* Handle rejection of a call by userspace
|
||||
* - reject the call at the front of the queue
|
||||
*/
|
||||
int rxrpc_reject_call(struct rxrpc_sock *rx)
|
||||
|
@ -495,7 +495,6 @@ struct rxrpc_call *rxrpc_kernel_accept_call(struct socket *sock,
|
|||
_leave(" = %p", call);
|
||||
return call;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(rxrpc_kernel_accept_call);
|
||||
|
||||
/**
|
||||
|
@ -514,5 +513,4 @@ int rxrpc_kernel_reject_call(struct socket *sock)
|
|||
_leave(" = %d", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(rxrpc_kernel_reject_call);
|
||||
|
|
|
@ -115,7 +115,6 @@ void rxrpc_UDP_error_report(struct sock *sk)
|
|||
/* pass the transport ref to error_handler to release */
|
||||
skb_queue_tail(&trans->error_queue, skb);
|
||||
rxrpc_queue_work(&trans->error_handler);
|
||||
|
||||
_leave("");
|
||||
}
|
||||
|
||||
|
|
|
@ -133,5 +133,4 @@ void rxrpc_kernel_free_skb(struct sk_buff *skb)
|
|||
{
|
||||
rxrpc_free_skb(skb);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(rxrpc_kernel_free_skb);
|
||||
|
|
Loading…
Reference in a new issue