diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2014-06-11 12:19:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-11 15:23:17 -0400 |
commit | 9b87d4651069a3ff72edc11f170f4729585ba828 (patch) | |
tree | c512794d2d102e7b14d991472de8ec66c53207a4 /net/sctp | |
parent | a7288c4dd5094b3878b7ad817b0cd130a6f8e916 (diff) |
net: sctp: fix incorrect type in gfp initializer
This fixes the following sparse warning:
net/sctp/associola.c:1556:29: warning: incorrect type in initializer (different base types)
net/sctp/associola.c:1556:29: expected bool [unsigned] [usertype] preload
net/sctp/associola.c:1556:29: got restricted gfp_t
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
-rw-r--r-- | net/sctp/associola.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/associola.c b/net/sctp/associola.c index 58bbb731fd26..9e0509ce2f84 100644 --- a/net/sctp/associola.c +++ b/net/sctp/associola.c | |||
@@ -1591,7 +1591,7 @@ int sctp_assoc_lookup_laddr(struct sctp_association *asoc, | |||
1591 | /* Set an association id for a given association */ | 1591 | /* Set an association id for a given association */ |
1592 | int sctp_assoc_set_id(struct sctp_association *asoc, gfp_t gfp) | 1592 | int sctp_assoc_set_id(struct sctp_association *asoc, gfp_t gfp) |
1593 | { | 1593 | { |
1594 | bool preload = gfp & __GFP_WAIT; | 1594 | bool preload = !!(gfp & __GFP_WAIT); |
1595 | int ret; | 1595 | int ret; |
1596 | 1596 | ||
1597 | /* If the id is already assigned, keep it. */ | 1597 | /* If the id is already assigned, keep it. */ |