diff options
author | Koby Elbaz <kelbaz@habana.ai> | 2022-06-22 10:42:42 +0300 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2022-07-12 09:09:24 +0300 |
commit | 0c584e192f5af0a05cab42dd431ea6c028f04194 (patch) | |
tree | ef8c26a67ac34d9fafbca9ff2e1603d4fbadbf1d /drivers/misc/habanalabs/gaudi/gaudi.c | |
parent | 792588a8c221359954f459b1fd22c32e1ef3085b (diff) | |
download | linux-0c584e192f5af0a05cab42dd431ea6c028f04194.tar.xz |
habanalabs/gaudi: fix warning: var might be used uninitialized
kernel test robot:
"warning: variable 'index' is used uninitialized whenever 'if' condition
is false"
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Koby Elbaz <kelbaz@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs/gaudi/gaudi.c')
-rw-r--r-- | drivers/misc/habanalabs/gaudi/gaudi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/habanalabs/gaudi/gaudi.c b/drivers/misc/habanalabs/gaudi/gaudi.c index 939d2636b9ed..172c21f262e7 100644 --- a/drivers/misc/habanalabs/gaudi/gaudi.c +++ b/drivers/misc/habanalabs/gaudi/gaudi.c @@ -7388,7 +7388,7 @@ static void gaudi_handle_qman_err(struct hl_device *hdev, u16 event_type, u64 *e if (event_type == GAUDI_EVENT_MME0_QM) { index = 0; qid_base = GAUDI_QUEUE_ID_MME_0_0; - } else if (event_type == GAUDI_EVENT_MME2_QM) { + } else { /* event_type == GAUDI_EVENT_MME2_QM */ index = 2; qid_base = GAUDI_QUEUE_ID_MME_1_0; } |