From 63801d5bf7f95825727b2a367ecd5cf402040a09 Mon Sep 17 00:00:00 2001 From: mssonicbld <79238446+mssonicbld@users.noreply.github.com> Date: Sun, 3 Sep 2023 22:15:30 +0800 Subject: [PATCH] [Mellanox][SFP] Remove unused function parameter (#16318) (#16424) --- platform/mellanox/mlnx-platform-api/sonic_platform/sfp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/mellanox/mlnx-platform-api/sonic_platform/sfp.py b/platform/mellanox/mlnx-platform-api/sonic_platform/sfp.py index 9ec38e23ba..d4b49706b7 100644 --- a/platform/mellanox/mlnx-platform-api/sonic_platform/sfp.py +++ b/platform/mellanox/mlnx-platform-api/sonic_platform/sfp.py @@ -215,7 +215,7 @@ class NvidiaSFPCommon(SfpOptoeBase): return SFP.shared_sdk_handle @classmethod - def _get_module_info(self, sdk_handle, sdk_index): + def _get_module_info(self, sdk_index): """ Get oper state and error code of the SFP module @@ -436,7 +436,7 @@ class SFP(NvidiaSFPCommon): Returns: The error description """ - oper_status, error_code = self._get_module_info(self.sdk_handle, self.sdk_index) + oper_status, error_code = self._get_module_info(self.sdk_index) if oper_status == SX_PORT_MODULE_STATUS_INITIALIZING: error_description = self.SFP_STATUS_INITIALIZING elif oper_status == SX_PORT_MODULE_STATUS_PLUGGED: