Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e42de262 authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller
Browse files

sfc: Fix failure paths in efx_probe_port()

parent 7db8e8ec
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -761,7 +761,7 @@ static int efx_probe_port(struct efx_nic *efx)
	/* Connect up MAC/PHY operations table */
	rc = efx->type->probe_port(efx);
	if (rc)
		goto err;
		return rc;

	/* Sanity check MAC address */
	if (is_valid_ether_addr(efx->mac_address)) {
@@ -782,7 +782,7 @@ static int efx_probe_port(struct efx_nic *efx)
	return 0;

 err:
	efx_remove_port(efx);
	efx->type->remove_port(efx);
	return rc;
}