diff options
Diffstat (limited to 'net/rxrpc/ar-output.c')
-rw-r--r-- | net/rxrpc/ar-output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rxrpc/ar-output.c b/net/rxrpc/ar-output.c index e1ac183d50bb..d0e8f1c1898a 100644 --- a/net/rxrpc/ar-output.c +++ b/net/rxrpc/ar-output.c | |||
@@ -152,8 +152,8 @@ int rxrpc_client_sendmsg(struct kiocb *iocb, struct rxrpc_sock *rx, | |||
152 | if (trans) { | 152 | if (trans) { |
153 | service_id = rx->service_id; | 153 | service_id = rx->service_id; |
154 | if (msg->msg_name) { | 154 | if (msg->msg_name) { |
155 | struct sockaddr_rxrpc *srx = | 155 | DECLARE_SOCKADDR(struct sockaddr_rxrpc *, srx, |
156 | (struct sockaddr_rxrpc *) msg->msg_name; | 156 | msg->msg_name); |
157 | service_id = htons(srx->srx_service); | 157 | service_id = htons(srx->srx_service); |
158 | } | 158 | } |
159 | key = rx->key; | 159 | key = rx->key; |