i40e: track id can be 0

track_id == 0 is valid for “read only” profiles when
profile does not have any “write” commands.

Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
Jingjing Wu 2017-11-14 07:00:48 -05:00 committed by Jeff Kirsher
parent 329e598368
commit 0794fedcef
2 changed files with 0 additions and 10 deletions

View File

@ -5364,11 +5364,6 @@ i40e_write_profile(struct i40e_hw *hw, struct i40e_profile_segment *profile,
u32 offset = 0, info = 0; u32 offset = 0, info = 0;
u32 i; u32 i;
if (!track_id) {
i40e_debug(hw, I40E_DEBUG_PACKAGE, "Track_id can't be 0.");
return I40E_NOT_SUPPORTED;
}
dev_cnt = profile->device_table_count; dev_cnt = profile->device_table_count;
for (i = 0; i < dev_cnt; i++) { for (i = 0; i < dev_cnt; i++) {

View File

@ -1330,11 +1330,6 @@ i40evf_write_profile(struct i40e_hw *hw, struct i40e_profile_segment *profile,
u32 offset = 0, info = 0; u32 offset = 0, info = 0;
u32 i; u32 i;
if (!track_id) {
i40e_debug(hw, I40E_DEBUG_PACKAGE, "Track_id can't be 0.");
return I40E_NOT_SUPPORTED;
}
dev_cnt = profile->device_table_count; dev_cnt = profile->device_table_count;
for (i = 0; i < dev_cnt; i++) { for (i = 0; i < dev_cnt; i++) {