]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: remove dead code from free_device_memory()
authorTomer Tayar <ttayar@habana.ai>
Fri, 24 Jun 2022 10:05:23 +0000 (13:05 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:26 +0000 (09:09 +0300)
commite7d00f0fa24846b74f63cec00f6e1ca2291cd52e
treebb24851e3ba872afa0b2d2647496f71f094f4bf0
parent4bee80aa5f27edf5578b6548816784fd3d0f1006
habanalabs: remove dead code from free_device_memory()

free_device_memory() ends with if and else, each has a return statement,
followed by another return statement that can never be reached.
Restructure the function and remove this dead code.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/memory.c