From: Marcelo Ricardo Leitner Date: Thu, 26 Apr 2018 19:58:52 +0000 (-0300) Subject: sctp: remove an if() that is always true X-Git-Tag: v4.19~872^2~362^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c88da20f95ad0bfa49e3e9035c26aaac0b05d11d;p=platform%2Fkernel%2Flinux-rpi.git sctp: remove an if() that is always true As noticed by Xin Long, the if() here is always true as PMTU can never be 0. Reported-by: Xin Long Signed-off-by: Marcelo Ricardo Leitner Signed-off-by: David S. Miller --- diff --git a/net/sctp/associola.c b/net/sctp/associola.c index b3aa952..c5ed09c 100644 --- a/net/sctp/associola.c +++ b/net/sctp/associola.c @@ -1397,10 +1397,8 @@ void sctp_assoc_sync_pmtu(struct sctp_association *asoc) pmtu = t->pathmtu; } - if (pmtu) { - asoc->pathmtu = pmtu; - asoc->frag_point = sctp_frag_point(asoc, pmtu); - } + asoc->pathmtu = pmtu; + asoc->frag_point = sctp_frag_point(asoc, pmtu); pr_debug("%s: asoc:%p, pmtu:%d, frag_point:%d\n", __func__, asoc, asoc->pathmtu, asoc->frag_point);