Skip to content

Commit

Permalink
SF00792738: Fix the type-casting statement for CISCO_SGMII case
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyh2020 committed Oct 14, 2021
1 parent 2f226cd commit 922c724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/switch/h2pcs1g.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ uchar h2_pcs1g_clause_37_status_get(const vtss_cport_no_t chip_port)
/* Return partner advertisement ability */
lp_adv_ability = VTSS_X_DEV_PCS1G_CFG_STATUS_PCS1G_ANEG_STATUS_LP_ADV_ABILITY(value);
if (MAC_IF_SGMII == mac_if) {
uchar sgmii_link = BF((1 << 15), lp_adv_ability);
uchar sgmii_link = (lp_adv_ability & 0x8000) ? 1 : 0;

lm = ((lp_adv_ability >> 10) & 3);
if (VTSS_BOOL(lp_adv_ability & (1 << 12))) {
Expand Down

0 comments on commit 922c724

Please sign in to comment.