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>
This commit is contained in:

committed by
David S. Miller

parent
9ce33e4653
commit
47b3ba5175
@@ -207,7 +207,7 @@ struct sctp_chunk *sctp_make_datafrag_empty(const struct sctp_association *asoc,
|
||||
int len, __u8 flags, gfp_t gfp);
|
||||
struct sctp_chunk *sctp_make_ecne(const struct sctp_association *asoc,
|
||||
const __u32 lowest_tsn);
|
||||
struct sctp_chunk *sctp_make_sack(const struct sctp_association *asoc);
|
||||
struct sctp_chunk *sctp_make_sack(struct sctp_association *asoc);
|
||||
struct sctp_chunk *sctp_make_shutdown(const struct sctp_association *asoc,
|
||||
const struct sctp_chunk *chunk);
|
||||
struct sctp_chunk *sctp_make_shutdown_ack(const struct sctp_association *asoc,
|
||||
|
Reference in New Issue
Block a user