summaryrefslogtreecommitdiffstats
path: root/net/sctp/outqueue.c
diff options
context:
space:
mode:
authorShan Wei <shanwei@cn.fujitsu.com>2011-04-19 21:27:07 +0000
committerDavid S. Miller <davem@davemloft.net>2011-04-20 01:51:02 -0700
commit48669698c23339e0fa31753f04e77648fc210339 (patch)
treed8480e12cc6aa6a1d0671f025b151eb14d32cb30 /net/sctp/outqueue.c
parent96ca468b86b09aa6a001ac65dba93a6c4a3692a5 (diff)
downloadtalos-obmc-linux-48669698c23339e0fa31753f04e77648fc210339.tar.gz
talos-obmc-linux-48669698c23339e0fa31753f04e77648fc210339.zip
sctp: remove redundant check when walking through a list of TLV parameters
When pos.v <= (void *)chunk + end - ntohs(pos.p->length) and ntohs(pos.p->length) >= sizeof(sctp_paramhdr_t) these two expressions are all true, pos.v <= (void *)chunk + end - sizeof(sctp_paramhdr_t) *must* be true. This patch removes this kind of redundant check. It's same to _sctp_walk_errors macro. Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com> Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com> Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/outqueue.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud