habanalabs: remove redundant cs validity checks
authorOfir Bitton <obitton@habana.ai>
Mon, 13 Sep 2021 07:55:02 +0000 (10:55 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 18 Oct 2021 09:05:46 +0000 (12:05 +0300)
commit027d53b03ca1fe55ea9356ffdb7296432d236e59
tree2c4bc4a98c7c30058f01906e12af77cbdf2711fc
parent2b28485d0a3bf8aa220af4644eb186b5034ff830
habanalabs: remove redundant cs validity checks

During TDR handling, we check multiple times if CS is valid.
No need to perform this check as CS must be valid at all time
during the TDR handling.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_submission.c