Skip to content

Commit

Permalink
fix review comment
Browse files Browse the repository at this point in the history
Signed-off-by: Stepan Blyschak <[email protected]>
  • Loading branch information
stepanblyschak committed Dec 18, 2024
1 parent d1a2383 commit 80859fe
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions syncd/SaiDiscovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,6 @@ void SaiDiscovery::discover(

sai_object_type_t ot = m_sai->objectTypeQuery(rid);

#ifdef SKIP_SAI_PORT_DISCOVERY
if (ot == SAI_OBJECT_TYPE_PORT)
{
return;
}
#endif

if (ot == SAI_OBJECT_TYPE_NULL)
{
SWSS_LOG_THROW("objectTypeQuery: rid %s returned NULL object type",
Expand Down Expand Up @@ -94,6 +87,13 @@ void SaiDiscovery::discover(
discovered.insert(rid);
}

#ifdef SKIP_SAI_PORT_DISCOVERY
if (ot == SAI_OBJECT_TYPE_PORT)
{
return;
}
#endif

const sai_object_type_info_t *info = sai_metadata_get_object_type_info(ot);

/*
Expand Down

0 comments on commit 80859fe

Please sign in to comment.