summaryrefslogtreecommitdiffstats
path: root/include/net/sctp
diff options
context:
space:
mode:
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>2018-04-24 17:17:34 -0400
committerDavid S. Miller <davem@davemloft.net>2018-04-25 13:21:26 -0400
commit47b3ba5175e940c9be5fd6aec05d6e7e048ff823 (patch)
tree1f1ca68734121d00b6869fcae253107cc592d0c3 /include/net/sctp
parent9ce33e46531d4b9f94b0fa135781e27c7c4e32e8 (diff)
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>
Diffstat (limited to 'include/net/sctp')
-rw-r--r--include/net/sctp/sm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sctp/sm.h b/include/net/sctp/sm.h
index 2d0e782c9055..f4b657478a30 100644
--- a/include/net/sctp/sm.h
+++ b/include/net/sctp/sm.h
@@ -207,7 +207,7 @@ struct sctp_chunk *sctp_make_datafrag_empty(const struct sctp_association *asoc,
207 int len, __u8 flags, gfp_t gfp); 207 int len, __u8 flags, gfp_t gfp);
208struct sctp_chunk *sctp_make_ecne(const struct sctp_association *asoc, 208struct sctp_chunk *sctp_make_ecne(const struct sctp_association *asoc,
209 const __u32 lowest_tsn); 209 const __u32 lowest_tsn);
210struct sctp_chunk *sctp_make_sack(const struct sctp_association *asoc); 210struct sctp_chunk *sctp_make_sack(struct sctp_association *asoc);
211struct sctp_chunk *sctp_make_shutdown(const struct sctp_association *asoc, 211struct sctp_chunk *sctp_make_shutdown(const struct sctp_association *asoc,
212 const struct sctp_chunk *chunk); 212 const struct sctp_chunk *chunk);
213struct sctp_chunk *sctp_make_shutdown_ack(const struct sctp_association *asoc, 213struct sctp_chunk *sctp_make_shutdown_ack(const struct sctp_association *asoc,