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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8dc2bbe72e
commit
4a334d898a
@@ -242,7 +242,6 @@ int et131x_xcvr_find(struct et131x_adapter *adapter)
|
|||||||
u8 xcvr_addr;
|
u8 xcvr_addr;
|
||||||
u16 idr1;
|
u16 idr1;
|
||||||
u16 idr2;
|
u16 idr2;
|
||||||
u32 xcvr_id;
|
|
||||||
|
|
||||||
/* We need to get xcvr id and address we just get the first one */
|
/* We need to get xcvr id and address we just get the first one */
|
||||||
for (xcvr_addr = 0; xcvr_addr < 32; xcvr_addr++) {
|
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),
|
(u8) offsetof(struct mi_regs, idr2),
|
||||||
&idr2);
|
&idr2);
|
||||||
|
|
||||||
xcvr_id = (u32) ((idr1 << 16) | idr2);
|
|
||||||
|
|
||||||
if (idr1 != 0 && idr1 != 0xffff) {
|
if (idr1 != 0 && idr1 != 0xffff) {
|
||||||
adapter->stats.xcvr_id = xcvr_id;
|
|
||||||
adapter->stats.xcvr_addr = xcvr_addr;
|
adapter->stats.xcvr_addr = xcvr_addr;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -115,7 +115,6 @@ struct ce_stats {
|
|||||||
|
|
||||||
/* Transceiver state informations. */
|
/* Transceiver state informations. */
|
||||||
u8 xcvr_addr;
|
u8 xcvr_addr;
|
||||||
u32 xcvr_id;
|
|
||||||
|
|
||||||
/* Tx Statistics. */
|
/* Tx Statistics. */
|
||||||
u32 tx_underflows;
|
u32 tx_underflows;
|
||||||
|
Reference in New Issue
Block a user