diff options
author | Ivan Vecera <[email protected]> | 2024-04-27 09:26:06 +0200 |
---|---|---|
committer | Tony Nguyen <[email protected]> | 2024-04-30 09:33:07 -0700 |
commit | 6c8e355ea5fccf686703d71219f3b96ec7ec923f (patch) | |
tree | 211ee8ce26c38ed4c1c20763f2dc2763c904018a /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 43f4466ca91debe63a07a80250282cf3210de1aa (diff) |
i40e: Consolidate checks whether given VSI is main
In the driver code there are 3 types of checks whether given
VSI is main or not:
1. vsi->type ==/!= I40E_VSI_MAIN
2. vsi ==/!= pf->vsi[pf->lan_vsi]
3. vsi->seid ==/!= pf->vsi[pf->lan_vsi]->seid
All of them are equivalent and can be consolidated. Convert cases
2 and 3 to case 1.
Reviewed-by: Michal Schmidt <[email protected]>
Tested-by: Pucha Himasekhar Reddy <[email protected]>
Signed-off-by: Ivan Vecera <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions