We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 878cd8f + fea8ee4 commit 9acdbc0Copy full SHA for 9acdbc0
1 file changed
drivers/net/phy/micrel.c
@@ -3433,7 +3433,7 @@ static int lan8841_config_intr(struct phy_device *phydev)
3433
3434
if (phydev->interrupts == PHY_INTERRUPT_ENABLED) {
3435
err = phy_read(phydev, LAN8814_INTS);
3436
- if (err)
+ if (err < 0)
3437
return err;
3438
3439
/* Enable / disable interrupts. It is OK to enable PTP interrupt
0 commit comments