habanalabs/gaudi: replace hl_poll_timeout with while loop
authorDafna Hirschfeld <dhirschfeld@habana.ai>
Sun, 26 Jun 2022 13:18:40 +0000 (16:18 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:26 +0000 (09:09 +0300)
commit0407c155f1a237f8f42b996d1a71088d462c494b
tree6aae9854e4d3ae38fffc16eeb21b5f9d447b68b1
parentfce854e9bc244da700f71a90f5c2c4b7e7002f8f
habanalabs/gaudi: replace hl_poll_timeout with while loop

in gaudi_scrub_device_mem, replace call to hl_poll_timeout
with a while loop to avoid using dummy variables.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Dafna Hirschfeld <dhirschfeld@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi.c