amd-xgbe: Remove field that indicates SFP diagnostic support
authorTom Lendacky <thomas.lendacky@amd.com>
Wed, 23 May 2018 16:38:38 +0000 (11:38 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 May 2018 20:33:00 +0000 (16:33 -0400)
commit67cea0c92264a657230ba14e1956c34132ca6161
tree5166b63a3c21ba35a1ae46c1eb909ad61283d114
parent0d2b5255ea7b69f2270e41130ee25346b1f68b7b
amd-xgbe: Remove field that indicates SFP diagnostic support

The driver currently sets an indication of whether the SFP supports, and
that the driver can obtain, diagnostics data.  This isn't currently used
by the driver and the logic to set this indicator is flawed because the
field is cleared each time the SFP is checked and only set when a new SFP
is detected.  Remove this field and the logic supporting it.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c