Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 1dd0178 ("RDMA/core: Fix protection fault in get_pkey_idx_qp_list") Link: ClangBuiltLinux#889 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
- Loading branch information