habanalabs: remove redundant check on ctx_fini
authorOded Gabbay <ogabbay@kernel.org>
Tue, 30 Nov 2021 15:04:13 +0000 (17:04 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 26 Dec 2021 06:59:08 +0000 (08:59 +0200)
commita4dd2ecf36c4458db14df3aae81ec3e3f4b4688e
tree00f7dd20bad2cf1fc29103eadf0ec4db5144cd8e
parentfee187fe460b6b72a62e7d7b7193f8d675752544
habanalabs: remove redundant check on ctx_fini

The driver supports only a single context. Therefore, no need to check
if the user context that is closed is the compute context. The user
context, if exists, is always the compute context.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/context.c