projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
800e00c
)
sctp: remove an if() that is always true
author
Marcelo Ricardo Leitner
<
[email protected]
>
Thu, 26 Apr 2018 19:58:52 +0000
(16:58 -0300)
committer
David S. Miller
<
[email protected]
>
Fri, 27 Apr 2018 18:35:22 +0000
(14:35 -0400)
As noticed by Xin Long, the if() here is always true as PMTU can never
be 0.
Reported-by: Xin Long <
[email protected]
>
Signed-off-by: Marcelo Ricardo Leitner <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/sctp/associola.c
patch
|
blob
|
history
diff --git
a/net/sctp/associola.c
b/net/sctp/associola.c
index b3aa95222bd52113295cb246c503c903bdd5c353..c5ed09cfa8423b17546e3d45f6d06db03af66384 100644
(file)
--- 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);