]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
sctp: remove an unnecessary check from sctp_endpoint_destroy
authorXin Long <lucien.xin@gmail.com>
Thu, 29 Jun 2017 09:28:06 +0000 (17:28 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Jul 2017 15:46:57 +0000 (08:46 -0700)
commit7f304b9efabbad584b093289d135bebdc09b222e
tree642f552182981afc362099000ea75d3922e7b805
parent0b58e6db0fa6382bf9ea50cf6779d9d7b44a033e
sctp: remove an unnecessary check from sctp_endpoint_destroy

ep->base.sk gets it's value since sctp_endpoint_new, nowhere
will change it. So there's no need to check if it's null, as
it can never be null.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/endpointola.c