From: Daniel Borkmann Date: Wed, 11 Jun 2014 16:19:32 +0000 (+0200) Subject: net: sctp: fix incorrect type in gfp initializer X-Git-Tag: v3.16-rc1~27^2~35^2 X-Git-Url: https://git.kernelconcepts.de/?a=commitdiff_plain;h=9b87d4651069a3ff72edc11f170f4729585ba828;p=karo-tx-linux.git 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 Signed-off-by: David S. Miller --- 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, /* 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. */