]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5682ec8a96b3ad34df3f5a69840c86658abf2678
tree00f7dd20bad2cf1fc29103eadf0ec4db5144cd8e
parent093488ad3ed9378dc657e6a6c4b21961165ca1a5
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