accel/habanalabs: call to HW/FW err returns 0 when no events exist
authorMoti Haimovski <mhaimovski@habana.ai>
Thu, 13 Apr 2023 10:54:40 +0000 (13:54 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 5 Jun 2023 12:31:34 +0000 (15:31 +0300)
commit04729b418f8b031712e6dbf5bffa7d639f8f211e
tree55171580cd26e3576cdfed60ee55840e5685f471
parent57469c12060899b7b0768ace178c7e36501e2f21
accel/habanalabs: call to HW/FW err returns 0 when no events exist

This commit modifies the call to retrieve HW or FW error events to
return success when no events are pending, as done in the calls to
other events.

Signed-off-by: Moti Haimovski <mhaimovski@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/habanalabs_ioctl.c