]> Git Repo - linux.git/commit
sctp: improve some variables in sctp_sendmsg
authorXin Long <[email protected]>
Thu, 1 Mar 2018 15:05:17 +0000 (23:05 +0800)
committerDavid S. Miller <[email protected]>
Sun, 4 Mar 2018 18:00:57 +0000 (13:00 -0500)
commit007b7e18be74a49b61f89664966ac1477e1c9608
tree4939a7c2d7171008551acf09e65a651208f38206
parent8e87c6eb18f9d7427054f28a284d495c174d9970
sctp: improve some variables in sctp_sendmsg

This patch mostly is to:

  - rename sinfo_flags as sflags, to make the indents look better, and
    also keep consistent with other sctp_sendmsg_xx functions.

  - replace new_asoc with bool new, no need to define a pointer here,
    as if new_asoc is set, it must be asoc.

  - rename the 'out_nounlock:' as 'out', shorter and nicer.

  - remove associd, only one place is using it now, just use
    sinfo->sinfo_assoc_id directly.

  - remove 'cmsgs' initialization in sctp_sendmsg, as it will be done
    in sctp_sendmsg_parse.

Signed-off-by: Xin Long <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/sctp/socket.c
This page took 0.051838 seconds and 4 git commands to generate.