accel/habanalabs: fix a static warning - 'dubious: x & !y'
authorKoby Elbaz <kelbaz@habana.ai>
Thu, 20 Apr 2023 11:17:31 +0000 (14:17 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Thu, 8 Jun 2023 09:35:54 +0000 (12:35 +0300)
commit7d212963366e8113d1a8548a35eb9cd5df110dca
tree8641f6b0b4c64ac255755a524e257624e23ce198
parent67d19a2f49b07b2c4a15e6a96e1de46d95209ae4
accel/habanalabs: fix a static warning - 'dubious: x & !y'

Use a straight forward approach to get a conditional result.

Signed-off-by: Koby Elbaz <kelbaz@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/gaudi2/gaudi2.c