diff options
-rw-r--r-- | drivers/net/ethernet/intel/i40e/i40e_common.c | 5 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/i40evf/i40e_common.c | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_common.c b/drivers/net/ethernet/intel/i40e/i40e_common.c index a196c3d305ab..40c5f7628aa1 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_common.c +++ b/drivers/net/ethernet/intel/i40e/i40e_common.c | |||
@@ -5364,11 +5364,6 @@ i40e_write_profile(struct i40e_hw *hw, struct i40e_profile_segment *profile, | |||
5364 | u32 offset = 0, info = 0; | 5364 | u32 offset = 0, info = 0; |
5365 | u32 i; | 5365 | u32 i; |
5366 | 5366 | ||
5367 | if (!track_id) { | ||
5368 | i40e_debug(hw, I40E_DEBUG_PACKAGE, "Track_id can't be 0."); | ||
5369 | return I40E_NOT_SUPPORTED; | ||
5370 | } | ||
5371 | |||
5372 | dev_cnt = profile->device_table_count; | 5367 | dev_cnt = profile->device_table_count; |
5373 | 5368 | ||
5374 | for (i = 0; i < dev_cnt; i++) { | 5369 | for (i = 0; i < dev_cnt; i++) { |
diff --git a/drivers/net/ethernet/intel/i40evf/i40e_common.c b/drivers/net/ethernet/intel/i40evf/i40e_common.c index c1e473219957..a94648429a5b 100644 --- a/drivers/net/ethernet/intel/i40evf/i40e_common.c +++ b/drivers/net/ethernet/intel/i40evf/i40e_common.c | |||
@@ -1330,11 +1330,6 @@ i40evf_write_profile(struct i40e_hw *hw, struct i40e_profile_segment *profile, | |||
1330 | u32 offset = 0, info = 0; | 1330 | u32 offset = 0, info = 0; |
1331 | u32 i; | 1331 | u32 i; |
1332 | 1332 | ||
1333 | if (!track_id) { | ||
1334 | i40e_debug(hw, I40E_DEBUG_PACKAGE, "Track_id can't be 0."); | ||
1335 | return I40E_NOT_SUPPORTED; | ||
1336 | } | ||
1337 | |||
1338 | dev_cnt = profile->device_table_count; | 1333 | dev_cnt = profile->device_table_count; |
1339 | 1334 | ||
1340 | for (i = 0; i < dev_cnt; i++) { | 1335 | for (i = 0; i < dev_cnt; i++) { |