drivers: mdio_nxp_enet: fix ampersands typo
Fix code typo with &&->& and redundant operation Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
parent
85d76f970f
commit
fa69f472aa
|
@ -62,7 +62,7 @@ static int nxp_enet_mdio_wait_xfer(const struct device *dev)
|
||||||
* ethernet driver has not initiaized, just do a busy wait
|
* ethernet driver has not initiaized, just do a busy wait
|
||||||
*/
|
*/
|
||||||
k_busy_wait(USEC_PER_MSEC * config->timeout);
|
k_busy_wait(USEC_PER_MSEC * config->timeout);
|
||||||
if (base->EIR && ENET_EIR_MII_MASK == ENET_EIR_MII_MASK) {
|
if (base->EIR & ENET_EIR_MII_MASK) {
|
||||||
ret = 0;
|
ret = 0;
|
||||||
} else {
|
} else {
|
||||||
ret = -ETIMEDOUT;
|
ret = -ETIMEDOUT;
|
||||||
|
@ -70,7 +70,7 @@ static int nxp_enet_mdio_wait_xfer(const struct device *dev)
|
||||||
} else if (k_sem_take(&data->mdio_sem, K_MSEC(config->timeout))) {
|
} else if (k_sem_take(&data->mdio_sem, K_MSEC(config->timeout))) {
|
||||||
/* Interrupt was enabled but did not occur in time */
|
/* Interrupt was enabled but did not occur in time */
|
||||||
ret = -ETIMEDOUT;
|
ret = -ETIMEDOUT;
|
||||||
} else if (base->EIR && ENET_EIR_MII_MASK == ENET_EIR_MII_MASK) {
|
} else if (base->EIR & ENET_EIR_MII_MASK) {
|
||||||
/* Interrupt happened meaning mdio transaction completed */
|
/* Interrupt happened meaning mdio transaction completed */
|
||||||
ret = 0;
|
ret = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue