aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-02-14 21:36:47 -0500
committerDavid S. Miller <davem@davemloft.net>2019-02-17 18:31:47 -0500
commita0bc653b1d48671caa9d22a44ff98050f8efd3ea (patch)
treedfffeb404d5ebaaa6580039d17389fbca775b088 /drivers/net/dsa
parent0496743b202ac0f2710ae243a493118ca5096c04 (diff)
net: dsa: bcm_sf2: Remove set but not used variables 'v6_spec, v6_m_spec'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/dsa/bcm_sf2_cfp.c: In function 'bcm_sf2_cfp_ipv6_rule_set': drivers/net/dsa/bcm_sf2_cfp.c:606:40: warning: variable 'v6_m_spec' set but not used [-Wunused-but-set-variable] drivers/net/dsa/bcm_sf2_cfp.c:606:30: warning: variable 'v6_spec' set but not used [-Wunused-but-set-variable] It not used any more after commit e4f7ef54cbd8 ("dsa: bcm_sf2: use flow_rule infrastructure") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa')
-rw-r--r--drivers/net/dsa/bcm_sf2_cfp.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/dsa/bcm_sf2_cfp.c b/drivers/net/dsa/bcm_sf2_cfp.c
index 0b9ca4bdf47e..e6234d209787 100644
--- a/drivers/net/dsa/bcm_sf2_cfp.c
+++ b/drivers/net/dsa/bcm_sf2_cfp.c
@@ -603,7 +603,6 @@ static int bcm_sf2_cfp_ipv6_rule_set(struct bcm_sf2_priv *priv, int port,
603 unsigned int queue_num, 603 unsigned int queue_num,
604 struct ethtool_rx_flow_spec *fs) 604 struct ethtool_rx_flow_spec *fs)
605{ 605{
606 struct ethtool_tcpip6_spec *v6_spec, *v6_m_spec;
607 struct ethtool_rx_flow_spec_input input = {}; 606 struct ethtool_rx_flow_spec_input input = {};
608 unsigned int slice_num, rule_index[2]; 607 unsigned int slice_num, rule_index[2];
609 const struct cfp_udf_layout *layout; 608 const struct cfp_udf_layout *layout;
@@ -618,13 +617,9 @@ static int bcm_sf2_cfp_ipv6_rule_set(struct bcm_sf2_priv *priv, int port,
618 switch (fs->flow_type & ~FLOW_EXT) { 617 switch (fs->flow_type & ~FLOW_EXT) {
619 case TCP_V6_FLOW: 618 case TCP_V6_FLOW:
620 ip_proto = IPPROTO_TCP; 619 ip_proto = IPPROTO_TCP;
621 v6_spec = &fs->h_u.tcp_ip6_spec;
622 v6_m_spec = &fs->m_u.tcp_ip6_spec;
623 break; 620 break;
624 case UDP_V6_FLOW: 621 case UDP_V6_FLOW:
625 ip_proto = IPPROTO_UDP; 622 ip_proto = IPPROTO_UDP;
626 v6_spec = &fs->h_u.udp_ip6_spec;
627 v6_m_spec = &fs->m_u.udp_ip6_spec;
628 break; 623 break;
629 default: 624 default:
630 return -EINVAL; 625 return -EINVAL;