Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c88da20f authored by Marcelo Ricardo Leitner's avatar Marcelo Ricardo Leitner Committed by David S. Miller
Browse files

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: default avatarXin Long <lucien.xin@gmail.com>
Signed-off-by: default avatarMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 800e00c1
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -1397,10 +1397,8 @@ void sctp_assoc_sync_pmtu(struct sctp_association *asoc)
			pmtu = t->pathmtu;
			pmtu = t->pathmtu;
	}
	}


	if (pmtu) {
	asoc->pathmtu = pmtu;
	asoc->pathmtu = pmtu;
	asoc->frag_point = sctp_frag_point(asoc, pmtu);
	asoc->frag_point = sctp_frag_point(asoc, pmtu);
	}


	pr_debug("%s: asoc:%p, pmtu:%d, frag_point:%d\n", __func__, asoc,
	pr_debug("%s: asoc:%p, pmtu:%d, frag_point:%d\n", __func__, asoc,
		 asoc->pathmtu, asoc->frag_point);
		 asoc->pathmtu, asoc->frag_point);