sctp: remove redundant null check on asoc
authorwangweidong <wangweidong1@huawei.com>
Wed, 11 Dec 2013 08:42:14 +0000 (16:42 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Dec 2013 20:39:34 +0000 (15:39 -0500)
In sctp_err_lookup, goto out while the asoc is not NULL, so remove the
check NULL. Also, in sctp_err_finish which called by sctp_v4_err and
sctp_v6_err, they pass asoc to sctp_err_finish while the asoc is not
NULL, so remove the check.

Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/input.c

Simple merge