summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorOfir Bitton <obitton@habana.ai>2020-10-19 15:52:00 +0200
committerOded Gabbay <ogabbay@kernel.org>2020-11-30 09:47:30 +0100
commit71a984f9ae0999ea2ea92003f56d306f03203ba0 (patch)
treea5d0145a61f45465c3244c465f24406b43605977 /drivers/misc
parenthabanalabs: make sure cs type is valid in cs_ioctl_signal_wait (diff)
downloadlinux-71a984f9ae0999ea2ea92003f56d306f03203ba0.tar.xz
linux-71a984f9ae0999ea2ea92003f56d306f03203ba0.zip
habanalabs/gaudi: remove unreachable code
Remove unreachable code in gaudi collective flow. Signed-off-by: Ofir Bitton <obitton@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to '')
-rw-r--r--drivers/misc/habanalabs/gaudi/gaudi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/misc/habanalabs/gaudi/gaudi.c b/drivers/misc/habanalabs/gaudi/gaudi.c
index c8e59a8338fb..a60c4347c1c6 100644
--- a/drivers/misc/habanalabs/gaudi/gaudi.c
+++ b/drivers/misc/habanalabs/gaudi/gaudi.c
@@ -1220,10 +1220,8 @@ static int gaudi_collective_wait_create_jobs(struct hl_device *hdev,
if (collective_engine_id == GAUDI_ENGINE_ID_DMA_5)
collective_queue = GAUDI_QUEUE_ID_DMA_5_0 + stream;
- else if (collective_engine_id == GAUDI_ENGINE_ID_TPC_7)
- collective_queue = GAUDI_QUEUE_ID_TPC_7_0 + stream;
else
- return -EINVAL;
+ collective_queue = GAUDI_QUEUE_ID_TPC_7_0 + stream;
num_jobs = NUMBER_OF_SOBS_IN_GRP + 1;
nic_queue = GAUDI_QUEUE_ID_NIC_0_0 + stream;