]> git.baikalelectronics.ru Git - kernel.git/commit
net: sctp: minor: remove variable in sctp_init_sock
authorDaniel Borkmann <dborkman@redhat.com>
Fri, 14 Jun 2013 16:24:06 +0000 (18:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jun 2013 22:38:36 +0000 (15:38 -0700)
commitc727359fd2fe560408fd1c9f1b99b8d849bc496a
tree9a1c94d0f34927c943f2246c61cded2eb2595bad
parent253533a847322e55166fc9403508e69b3af0a75a
net: sctp: minor: remove variable in sctp_init_sock

It's only used at this one time, so we could remove it as well.
This is valid and also makes it more explicit/obvious that in case
of error the sp->ep is NULL here, i.e. for the sctp_destroy_sock()
check that was recently added.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c