sctp: remove unnecessary NULL check in sctp_ulpq_tail_event()
authorAlexey Kodanev <aleksei.kodanev@bell-sw.com>
Wed, 19 Oct 2022 18:07:34 +0000 (21:07 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 21 Oct 2022 04:43:10 +0000 (21:43 -0700)
commitb66aeddbe30c26e56e33c65a74d073dc319beed5
tree4b3561fcd0b84a22b678bf0f4ae68b74296f9bad
parent6fdfdef7fdb57e6b9f768c9ca0718dcb5e727a85
sctp: remove unnecessary NULL check in sctp_ulpq_tail_event()

After commit 013b96ec6461 ("sctp: Pass sk_buff_head explicitly to
sctp_ulpq_tail_event().") there is one more unneeded check of
skb_list for NULL.

Detected using the static analysis tool - Svace.
Signed-off-by: Alexey Kodanev <aleksei.kodanev@bell-sw.com>
Reviewed-by: Xin Long <lucien.xin@gmail.com>
Link: https://lore.kernel.org/r/20221019180735.161388-2-aleksei.kodanev@bell-sw.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sctp/ulpqueue.c