mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 13:44:15 +08:00
habanalabs: initialize variable before use
GCC 7.3.1 20180303 (Red Hat 7.3.1-5) complains that collective_engine_id might be used uninitialized. Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
This commit is contained in:
parent
71a984f9ae
commit
977d53a614
@ -941,7 +941,7 @@ static int cs_ioctl_signal_wait(struct hl_fpriv *hpriv, enum hl_cs_type cs_type,
|
||||
struct hl_cs_compl *sig_waitcs_cmpl;
|
||||
struct hl_cs *cs;
|
||||
enum hl_queue_type q_type;
|
||||
u32 size_to_copy, q_idx, collective_engine_id;
|
||||
u32 size_to_copy, q_idx, collective_engine_id = 0;
|
||||
u64 signal_seq;
|
||||
int rc;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user