]> www.infradead.org Git - users/jedix/linux-maple.git/commit
accel/habanalabs: restructure function that checks heartbeat received
authorOhad Sharabi <osharabi@habana.ai>
Sun, 18 Feb 2024 07:38:23 +0000 (09:38 +0200)
committerOfir Bitton <obitton@habana.ai>
Sun, 23 Jun 2024 06:44:25 +0000 (09:44 +0300)
commit705e520dc58d0c9b48e8569ef95e0f96fba3d106
treeebba057be2983736d2732e4483037dce36380dc6
parent5a558f369ef89c6fd8170ee1137274fcc08517ae
accel/habanalabs: restructure function that checks heartbeat received

The function returned an error code which isn't propagated up the stack
(nor is it printed).

The return value is only checked for =0 or !=0 which implies bool return
value.

The function signature is updated accordingly, renamed, and slightly
refactored.

Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Ofir Bitton <obitton@habana.ai>
Signed-off-by: Ofir Bitton <obitton@habana.ai>
drivers/accel/habanalabs/common/device.c