diff options
author | Nathan Chancellor <natechancellor@gmail.com> | 2020-02-17 13:43:18 -0700 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-02-19 16:42:12 -0400 |
commit | 4ca501d6aaf21de31541deac35128bbea8427aa6 (patch) | |
tree | 51c612d6ee4c93623f198706c4161fdf5546a40f /drivers/pwm/pwm-twl-led.c | |
parent | e4103312d7b7afb8a3a7a842a33ef2b1856b2c0f (diff) |
RDMA/core: Fix use of logical OR in get_new_pps
Clang warns:
../drivers/infiniband/core/security.c:351:41: warning: converting the
enum constant to a boolean [-Wint-in-bool-context]
if (!(qp_attr_mask & (IB_QP_PKEY_INDEX || IB_QP_PORT)) && qp_pps) {
^
1 warning generated.
A bitwise OR should have been used instead.
Fixes: 1dd017882e01 ("RDMA/core: Fix protection fault in get_pkey_idx_qp_list")
Link: https://lore.kernel.org/r/20200217204318.13609-1-natechancellor@gmail.com
Link: https://github.com/ClangBuiltLinux/linux/issues/889
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/pwm/pwm-twl-led.c')
0 files changed, 0 insertions, 0 deletions