habanalabs: context cleanup cosmetics
authorOmer Shpigelman <oshpigelman@habana.ai>
Mon, 11 Oct 2021 07:03:44 +0000 (10:03 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 18 Oct 2021 09:05:48 +0000 (12:05 +0300)
commitfae132632c55fdab81a81e0fd3d578d38ce43f78
tree28a7e33236149b55de77b52e45c1afd630f4542d
parentd2f5684b8f28da52b8df9ac92a84d0f1c6983f5f
habanalabs: context cleanup cosmetics

No need to check the return value if the following action is the same for
both cases. In addition, now that hl_ctx_free() doesn't print if the
context is not released, its name can be misleading as the context might
stay alive after it is executed with no indication for that.
Hence we can discard it and simply put the refcount.

Signed-off-by: Omer Shpigelman <oshpigelman@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/context.c