Re: [PATCH net-next] sctp: remove an unnecessary check from sctp_endpoint_destroy

2017-07-01 Thread David Miller
From: Xin Long Date: Thu, 29 Jun 2017 17:28:06 +0800 > 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 Applied, thanks.

Re: [PATCH net-next] sctp: remove an unnecessary check from sctp_endpoint_destroy

2017-06-30 Thread Marcelo Ricardo Leitner
On Thu, Jun 29, 2017 at 05:28:06PM +0800, Xin Long wrote: > 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 Acked-by: Marcelo Ricardo Leitner > --- > net/sctp/endpoi

[PATCH net-next] sctp: remove an unnecessary check from sctp_endpoint_destroy

2017-06-29 Thread Xin Long
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 --- net/sctp/endpointola.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/net/sctp/endpointo