aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_common.c
diff options
context:
space:
mode:
authorBruce Allan <bruce.w.allan@intel.com>2019-04-16 13:21:18 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-05-04 17:21:01 -0400
commit207e3721acb4982f73453762ed8d6f3c7dc3de35 (patch)
tree2090bf848759e2f35190d58a9dd1b7a36ad589e7 /drivers/net/ethernet/intel/ice/ice_common.c
parentba0db585bdb696d28bd6ec3ae9908d45c0bdeb37 (diff)
ice: Do not unnecessarily initialize local variable
The local variable speed does not need to be initialized and can cause some static analysis tools to complain the initial assigned value is never used. Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_common.c')
-rw-r--r--drivers/net/ethernet/intel/ice/ice_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_common.c b/drivers/net/ethernet/intel/ice/ice_common.c
index 0f1c2267c9d7..da7878529929 100644
--- a/drivers/net/ethernet/intel/ice/ice_common.c
+++ b/drivers/net/ethernet/intel/ice/ice_common.c
@@ -1880,10 +1880,10 @@ void
1880ice_update_phy_type(u64 *phy_type_low, u64 *phy_type_high, 1880ice_update_phy_type(u64 *phy_type_low, u64 *phy_type_high,
1881 u16 link_speeds_bitmap) 1881 u16 link_speeds_bitmap)
1882{ 1882{
1883 u16 speed = ICE_AQ_LINK_SPEED_UNKNOWN;
1884 u64 pt_high; 1883 u64 pt_high;
1885 u64 pt_low; 1884 u64 pt_low;
1886 int index; 1885 int index;
1886 u16 speed;
1887 1887
1888 /* We first check with low part of phy_type */ 1888 /* We first check with low part of phy_type */
1889 for (index = 0; index <= ICE_PHY_TYPE_LOW_MAX_INDEX; index++) { 1889 for (index = 0; index <= ICE_PHY_TYPE_LOW_MAX_INDEX; index++) {