sctp: remove the useless check in sctp_renege_events
commitfb23403536eabe81ee90d32cb3051030b871d988
authorXin Long <lucien.xin@gmail.com>
Mon, 12 Feb 2018 10:31:24 +0000 (12 18:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Feb 2018 16:41:05 +0000 (12 11:41 -0500)
tree767129a414f12e05abfc2d21601744bd40b57e31
parent947820b9595aa99f73de033ddcfe4c729c903c75
sctp: remove the useless check in sctp_renege_events

Remove the 'if (chunk)' check in sctp_renege_events for idata process,
as all renege commands are generated in sctp_eat_data and it can't be
NULL.

The same thing we already did for common data in sctp_ulpq_renege.

Fixes: 94014e8d871a ("sctp: implement renege_events for sctp_stream_interleave")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/stream_interleave.c