]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: fix const parameter violation in sctp_make_sack
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Tue, 24 Apr 2018 21:17:34 +0000 (18:17 -0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Apr 2018 17:21:26 +0000 (13:21 -0400)
commit3a85649f9b1db52e10517fc790279b6d067d2990
tree1f1ca68734121d00b6869fcae253107cc592d0c3
parent7659bf20e13d9fdbabe035c580d531f823da30dd
sctp: fix const parameter violation in sctp_make_sack

sctp_make_sack() make changes to the asoc and this cast is just
bypassing the const attribute. As there is no need to have the const
there, just remove it and fix the violation.

Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Reviewed-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/sm.h
net/sctp/sm_make_chunk.c