diff options
| author | Colin Ian King <colin.king@canonical.com> | 2021-04-06 17:53:46 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-14 09:50:38 +0200 |
| commit | d10c5162b4931a48bf95783e67c380f2af3397cd (patch) | |
| tree | 5826daf588900d36e6dffd45550ba95f7dcf0e66 /include/uapi/linux | |
| parent | d97d22bda17aba6d24814fb96033bcc03d1a88a8 (diff) | |
net/mlx5: Fix bit-wise and with zero
[ Upstream commit 82c3ba31c370b6001cbf90689e98da1fb6f26aef ]
The bit-wise and of the action field with MLX5_ACCEL_ESP_ACTION_DECRYPT
is incorrect as MLX5_ACCEL_ESP_ACTION_DECRYPT is zero and not intended
to be a bit-flag. Fix this by using the == operator as was originally
intended.
Addresses-Coverity: ("Logically dead code")
Fixes: 7dfee4b1d79e ("net/mlx5: IPsec, Refactor SA handle creation and destruction")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions
