IB/mad: Fix sparse warning about gfp_t use
authorRoland Dreier <roland@purestorage.com>
Tue, 3 Jun 2014 17:24:24 +0000 (10:24 -0700)
committerRoland Dreier <roland@purestorage.com>
Tue, 3 Jun 2014 17:24:24 +0000 (10:24 -0700)
commit5343c00dd0f2543d5751575515bdae4b801820ea
tree7d60a23aed12786b1fdbd8b2a027b56c04b0201c
parent729ee4efcc29c040a1729c058f03fae3cebc6035
IB/mad: Fix sparse warning about gfp_t use

Properly convert gfp_t & result to bool to fix:

    drivers/infiniband/core/sa_query.c:621:33: warning: incorrect type in initializer (different base types)
    drivers/infiniband/core/sa_query.c:621:33:    expected bool [unsigned] [usertype] preload
    drivers/infiniband/core/sa_query.c:621:33:    got restricted gfp_t

Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/sa_query.c