Commit 018ebb6e authored by David S. Miller's avatar David S. Miller Committed by Dmitry Torokhov

[SCTP]: Kill 64-bit platform warning.

parent 3711eeb8
...@@ -271,7 +271,7 @@ struct sctp_association *sctp_association_init(struct sctp_association *asoc, ...@@ -271,7 +271,7 @@ struct sctp_association *sctp_association_init(struct sctp_association *asoc,
asoc->need_ecne = 0; asoc->need_ecne = 0;
asoc->assoc_id = (sctp_assoc_t)-1; asoc->assoc_id = (sctp_assoc_t)-1L;
/* Assume that peer would support both address types unless we are /* Assume that peer would support both address types unless we are
* told otherwise. * told otherwise.
...@@ -374,9 +374,9 @@ static void sctp_association_destroy(struct sctp_association *asoc) ...@@ -374,9 +374,9 @@ static void sctp_association_destroy(struct sctp_association *asoc)
sctp_endpoint_put(asoc->ep); sctp_endpoint_put(asoc->ep);
sock_put(asoc->base.sk); sock_put(asoc->base.sk);
if ((int)asoc->assoc_id != -1) { if ((long)asoc->assoc_id != -1L) {
spin_lock_bh(&sctp_assocs_id_lock); spin_lock_bh(&sctp_assocs_id_lock);
idr_remove(&sctp_assocs_id, (int)asoc->assoc_id); idr_remove(&sctp_assocs_id, (long)asoc->assoc_id);
spin_unlock_bh(&sctp_assocs_id_lock); spin_unlock_bh(&sctp_assocs_id_lock);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment