Skip to content

Commit

Permalink
[Mellanox] Fix uninitialized variable on module plug event (sonic-net…
Browse files Browse the repository at this point in the history
…#17011)

- Why I did it
To fix uninitialized variable

- How I did it
Add initial value

Signed-off-by: Yevhen Fastiuk <[email protected]>
  • Loading branch information
fastiuk authored Feb 5, 2024
1 parent 0aacc1f commit 2f35079
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2019-2022 NVIDIA CORPORATION & AFFILIATES.
# Copyright (c) 2019-2024 NVIDIA CORPORATION & AFFILIATES.
# Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -336,6 +336,7 @@ def on_pmpe(self, fd_p):
uint32_t_p_assign(port_cnt_p, 0)
label_port_list = []
module_state = 0
error_type = pmpe_t.error_type

rc = sx_lib_host_ifc_recv(fd_p, pkt, pkt_size_p, recv_info_p)
if rc != 0:
Expand Down

0 comments on commit 2f35079

Please sign in to comment.