summaryrefslogtreecommitdiff
path: root/drivers/staging/et131x/et1310_phy.c
diff options
context:
space:
mode:
authorMark Einon <mark.einon@gmail.com>2011-08-29 18:42:38 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-29 11:20:10 -0700
commit4a334d898a5cdbbe6d7a923a5106526ea82a9ffc (patch)
tree828501bbc003a537930a577106f3f5f2650ec06e /drivers/staging/et131x/et1310_phy.c
parent8dc2bbe72ec31469286027ebce6a00f05ef38a9f (diff)
staging: et131x: Remove unused xcvr_id in struct ce_stats
xcvr_id holds the phy ID which is stored but never used in the driver. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/et131x/et1310_phy.c')
-rw-r--r--drivers/staging/et131x/et1310_phy.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/et131x/et1310_phy.c b/drivers/staging/et131x/et1310_phy.c
index c845c27f23db..21e070427950 100644
--- a/drivers/staging/et131x/et1310_phy.c
+++ b/drivers/staging/et131x/et1310_phy.c
@@ -242,7 +242,6 @@ int et131x_xcvr_find(struct et131x_adapter *adapter)
u8 xcvr_addr;
u16 idr1;
u16 idr2;
- u32 xcvr_id;
/* We need to get xcvr id and address we just get the first one */
for (xcvr_addr = 0; xcvr_addr < 32; xcvr_addr++) {
@@ -254,10 +253,7 @@ int et131x_xcvr_find(struct et131x_adapter *adapter)
(u8) offsetof(struct mi_regs, idr2),
&idr2);
- xcvr_id = (u32) ((idr1 << 16) | idr2);
-
if (idr1 != 0 && idr1 != 0xffff) {
- adapter->stats.xcvr_id = xcvr_id;
adapter->stats.xcvr_addr = xcvr_addr;
return 0;
}