mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 15:41:39 +00:00
net: stmmac: fixed operator typo
This patch fixed operator typo from & to ==. Due to incorrect operator, the result is incorrect. Signed-off-by: Byungho An <bh74.an@samsung.com> Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
383eda32b8
commit
0d909dcdef
@ -788,13 +788,13 @@ static void stmmac_check_pcs_mode(struct stmmac_priv *priv)
|
||||
int interface = priv->plat->interface;
|
||||
|
||||
if (priv->dma_cap.pcs) {
|
||||
if ((interface & PHY_INTERFACE_MODE_RGMII) ||
|
||||
(interface & PHY_INTERFACE_MODE_RGMII_ID) ||
|
||||
(interface & PHY_INTERFACE_MODE_RGMII_RXID) ||
|
||||
(interface & PHY_INTERFACE_MODE_RGMII_TXID)) {
|
||||
if ((interface == PHY_INTERFACE_MODE_RGMII) ||
|
||||
(interface == PHY_INTERFACE_MODE_RGMII_ID) ||
|
||||
(interface == PHY_INTERFACE_MODE_RGMII_RXID) ||
|
||||
(interface == PHY_INTERFACE_MODE_RGMII_TXID)) {
|
||||
pr_debug("STMMAC: PCS RGMII support enable\n");
|
||||
priv->pcs = STMMAC_PCS_RGMII;
|
||||
} else if (interface & PHY_INTERFACE_MODE_SGMII) {
|
||||
} else if (interface == PHY_INTERFACE_MODE_SGMII) {
|
||||
pr_debug("STMMAC: PCS SGMII support enable\n");
|
||||
priv->pcs = STMMAC_PCS_SGMII;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user