Skip to content

Commit

Permalink
Removed not reachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyh2020 committed Sep 29, 2022
1 parent 43cae47 commit ff9a49d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 42 deletions.
8 changes: 1 addition & 7 deletions src/config/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,7 @@ const char code *SW_COMPILE_DATE = __DATE__ " " __TIME__;

/* Notice that text 'TEST-N' should be excluded from the software version string */
const char code *SW_VERSION =
#if defined(LUTON26_L25)
"Luton25 3.08a"
#elif defined(LUTON26_L16)
"Luton16e 3.08a"
#elif defined(LUTON26_L10)
"Luton10 3.08a"
#elif defined(FERRET_F11)
#if defined(FERRET_F11)
"Ferret_F11" VER_SUFFIX_TXT
#elif defined(FERRET_F10P)
"Ferret_F10P" VER_SUFFIX_TXT
Expand Down
35 changes: 0 additions & 35 deletions src/phy/phytsk.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,35 +226,6 @@ static void phy_init (void)
u16 reg_val;

delay(MSEC_30);

#if defined(LUTON26_L25)
phy_pre_reset(0);
phy_pre_reset(12);
if (phy_map(25)) { //using MDC/MDIO
phy_pre_reset(25); /*L25, port25 uses external single */
}

#elif defined(LUTON26_L16)
phy_pre_reset(0);
#ifdef LUTON26_L16_QSGMII_EXT_PHY
phy_pre_reset(12);
#endif /* LUTON26_L16_QSGMII_EXT_PHY */

#elif defined(LUTON26_L10)
phy_pre_reset(0);
if (phy_map(24)) {//using MDC/MDIO
phy_pre_reset(24); /* L10, port24 uses external single PHY */
}
if (phy_map(25)) {//using MDC/MDIO
phy_pre_reset(25); /* L10, port25 uses external single PHY*/
}
#endif // LUTON26_L25


#if defined(LUTON26_L25)
phy_page_std(12);
#endif

#if defined(FERRET_F11) || defined(FERRET_F10P)|| defined(FERRET_F5) || defined(FERRET_F4P)
// Reset PHY when using multiple PHY types
phy_pre_reset(0);
Expand Down Expand Up @@ -336,12 +307,6 @@ static void phy_init (void)
#if TRANSIT_FAN_CONTROL || TRANSIT_THERMAL
phy_init_temp_mode_regs(0);
#endif // TRANSIT_FAN_CONTROL || TRANSIT_THERMAL

#if defined(LUTON26_L25)
#if TRANSIT_FAN_CONTROL || TRANSIT_THERMAL
phy_init_temp_mode_regs(12);
#endif // TRANSIT_FAN_CONTROL || TRANSIT_THERMAL
#endif
}

static void _sfp_tx_disable_set(vtss_cport_no_t chip_port, BOOL is_disable)
Expand Down

0 comments on commit ff9a49d

Please sign in to comment.