projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7edf810
)
i40e: Add safety net for switch calling
author
Akeem G Abodunrin
<
[email protected]
>
Tue, 24 Feb 2015 06:58:42 +0000
(06:58 +0000)
committer
Jeff Kirsher
<
[email protected]
>
Tue, 3 Mar 2015 09:07:24 +0000
(
01:07
-0800)
This patch adds default case to handle unmatched switch calls.
Change-ID: Icd203570a1dc5322c1038f68b98a83195e8ad28c
Signed-off-by: Akeem G Abodunrin <
[email protected]
>
Signed-off-by: Jeff Kirsher <
[email protected]
>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
index 309bd1cf13e2bef75df1e27d22e3e88a20120170..8a9d6a256305f02736ab5272e5f428ddefc3b778 100644
(file)
--- 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;