Fix variable assignment inside if-clause in the smsc driver.

Found by D5245 / PVS.

MFC after:	1 week
This commit is contained in:
hselasky 2016-02-14 07:20:07 +00:00
parent 934e1ac91b
commit 9e3e4b8857

View File

@ -1362,7 +1362,7 @@ smsc_chip_init(struct smsc_softc *sc)
/* Reset the PHY */
smsc_write_reg(sc, SMSC_PM_CTRL, SMSC_PM_CTRL_PHY_RST);
if ((err = smsc_wait_for_bits(sc, SMSC_PM_CTRL, SMSC_PM_CTRL_PHY_RST) != 0)) {
if ((err = smsc_wait_for_bits(sc, SMSC_PM_CTRL, SMSC_PM_CTRL_PHY_RST)) != 0) {
smsc_warn_printf(sc, "timed-out waiting for phy reset to complete\n");
goto init_failed;
}