diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2014-06-11 18:19:32 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-11 12:23:17 -0700 |
commit | 9b87d4651069a3ff72edc11f170f4729585ba828 (patch) | |
tree | c512794d2d102e7b14d991472de8ec66c53207a4 /net/sctp/associola.c | |
parent | a7288c4dd5094b3878b7ad817b0cd130a6f8e916 (diff) | |
download | op-kernel-dev-9b87d4651069a3ff72edc11f170f4729585ba828.zip op-kernel-dev-9b87d4651069a3ff72edc11f170f4729585ba828.tar.gz |
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/associola.c')
-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 58bbb73..9e0509c 100644 --- a/net/sctp/associola.c +++ b/net/sctp/associola.c @@ -1591,7 +1591,7 @@ int sctp_assoc_lookup_laddr(struct sctp_association *asoc, /* Set an association id for a given association */ int sctp_assoc_set_id(struct sctp_association *asoc, gfp_t gfp) { - bool preload = gfp & __GFP_WAIT; + bool preload = !!(gfp & __GFP_WAIT); int ret; /* If the id is already assigned, keep it. */ |