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

Found by D5245 / PVS.

MFC after:	1 week
This commit is contained in:
Hans Petter Selasky 2016-02-14 07:20:07 +00:00
parent fe3e452399
commit 8cb15594b3

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;
}