From: Shan Wei Date: Tue, 19 Apr 2011 21:27:07 +0000 (+0000) Subject: sctp: remove redundant check when walking through a list of TLV parameters X-Git-Tag: v3.0-rc1~377^2~282 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48669698c23339e0fa31753f04e77648fc210339;p=pandora-kernel.git 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 Signed-off-by: Vlad Yasevich Signed-off-by: Wei Yongjun Signed-off-by: David S. Miller --- Reading git-diff-tree failed