tipc: refactor function tipc_sk_recv_stream()
authorJon Paul Maloy <jon.maloy@ericsson.com>
Tue, 2 May 2017 16:16:54 +0000 (18:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 May 2017 19:56:54 +0000 (15:56 -0400)
commitec8a09fbbeff252c80daf62c7a78342003dddf9c
treec52e9bc9f46009212362172962fe8f07e6fc6c76
parente9f8b10101c6da3ab000a2fb17162374c9bd2c69
tipc: refactor function tipc_sk_recv_stream()

We try to make this function more readable by improving variable names
and comments, using more stack variables, and doing some smaller changes
to the logics. We also rename the function to make it consistent with
naming conventions used elsewhere in the code.

Reviewed-by: Parthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/socket.c