diff options
author | Alexander Lobakin <alobakin@marvell.com> | 2020-07-20 21:08:11 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-20 17:59:44 -0700 |
commit | e9a5eb856411b371d6dde2f5aa3de7258be0f17e (patch) | |
tree | 20d5773816c176b2fc9811f8ac17ee94a949a285 /drivers/net/ethernet/qlogic/qed/qed.h | |
parent | 5d4193c641dc4a2cd4ee31fae20efcbabaeb961f (diff) | |
download | linux-e9a5eb856411b371d6dde2f5aa3de7258be0f17e.tar.gz linux-e9a5eb856411b371d6dde2f5aa3de7258be0f17e.tar.bz2 linux-e9a5eb856411b371d6dde2f5aa3de7258be0f17e.zip |
qed: remove unused qed_hw_info::port_mode and QED_PORT_MODE
Struct field qed_hw_info::port_mode isn't used anywhere in the code, so
can be safely removed to prevent possible dead code addition.
Also remove the enumeration QED_PORT_MODE orphaned after this deletion.
Signed-off-by: Alexander Lobakin <alobakin@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed.h')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed.h b/drivers/net/ethernet/qlogic/qed/qed.h index e2d7a4bbab53..47da4f7d3be2 100644 --- a/drivers/net/ethernet/qlogic/qed/qed.h +++ b/drivers/net/ethernet/qlogic/qed/qed.h @@ -245,20 +245,6 @@ enum QED_FEATURE { QED_MAX_FEATURES, }; -enum QED_PORT_MODE { - QED_PORT_MODE_DE_2X40G, - QED_PORT_MODE_DE_2X50G, - QED_PORT_MODE_DE_1X100G, - QED_PORT_MODE_DE_4X10G_F, - QED_PORT_MODE_DE_4X10G_E, - QED_PORT_MODE_DE_4X20G, - QED_PORT_MODE_DE_1X40G, - QED_PORT_MODE_DE_2X25G, - QED_PORT_MODE_DE_1X25G, - QED_PORT_MODE_DE_4X25G, - QED_PORT_MODE_DE_2X10G, -}; - enum qed_dev_cap { QED_DEV_CAP_ETH, QED_DEV_CAP_FCOE, @@ -337,7 +323,6 @@ struct qed_hw_info { struct qed_igu_info *p_igu_info; - u32 port_mode; u32 hw_mode; unsigned long device_capabilities; u16 mtu; |