summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorAkeem G Abodunrin <akeem.g.abodunrin@intel.com>2015-02-24 06:58:42 +0000
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-03-03 01:07:24 -0800
commit579b23d8dc4c9d9a87b58cecc9ffdf326aca7b28 (patch)
tree7802ae0882896387b8e5250aa88d89d944888c59 /drivers/net
parent7edf810c61ce054afc8798178d829d2f139bb976 (diff)
i40e: Add safety net for switch calling
This patch adds default case to handle unmatched switch calls. Change-ID: Icd203570a1dc5322c1038f68b98a83195e8ad28c Signed-off-by: Akeem G Abodunrin <akeem.g.abodunrin@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_ethtool.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
index 309bd1cf13e2..8a9d6a256305 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
@@ -1413,6 +1413,8 @@ static void i40e_get_strings(struct net_device *netdev, u32 stringset,
data += ETH_GSTRING_LEN;
}
break;
+ default:
+ break;
}
}
@@ -1654,6 +1656,8 @@ static int i40e_set_phys_id(struct net_device *netdev,
case ETHTOOL_ID_INACTIVE:
i40e_led_set(hw, pf->led_status, false);
break;
+ default:
+ break;
}
return 0;