projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9402a33
)
habanalabs/gaudi: set uninitialized symbol
author
Ofir Bitton
<obitton@habana.ai>
Tue, 22 Dec 2020 13:56:12 +0000
(15:56 +0200)
committer
Oded Gabbay
<ogabbay@kernel.org>
Wed, 27 Jan 2021 19:03:49 +0000
(21:03 +0200)
Initialize local variable that is returned by the function, in
case it is never assigned.
Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi.c
patch
|
blob
|
history
diff --git
a/drivers/misc/habanalabs/gaudi/gaudi.c
b/drivers/misc/habanalabs/gaudi/gaudi.c
index 19c9e38959832dab29d42ed1da2c31418d85fdef..e105f1c6ab748bd585e6c308b87aede890114f63 100644
(file)
--- a/
drivers/misc/habanalabs/gaudi/gaudi.c
+++ b/
drivers/misc/habanalabs/gaudi/gaudi.c
@@
-1248,7
+1248,7
@@
static int gaudi_collective_wait_create_jobs(struct hl_device *hdev,
u32 queue_id, collective_queue, num_jobs;
u32 stream, nic_queue, nic_idx = 0;
bool skip;
- int i, rc;
+ int i, rc
= 0
;
/* Verify wait queue id is configured as master */
hw_queue_prop = &hdev->asic_prop.hw_queues_props[wait_queue_id];