OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7db8e8e
)
sfc: Fix failure paths in efx_probe_port()
author
Ben Hutchings
<bhutchings@solarflare.com>
Fri, 10 Sep 2010 06:41:19 +0000
(06:41 +0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 10 Sep 2010 19:27:30 +0000
(12:27 -0700)
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/efx.c
patch
|
blob
|
history
diff --git
a/drivers/net/sfc/efx.c
b/drivers/net/sfc/efx.c
index
b385f89
..
a576045
100644
(file)
--- a/
drivers/net/sfc/efx.c
+++ b/
drivers/net/sfc/efx.c
@@
-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;
}