Commit 349181b7 authored by Karen Sornek's avatar Karen Sornek Committed by Tony Nguyen

iavf: Fix static code analysis warning

Change min() to min_t() to fix static code analysis warning of possible
overflow.
Signed-off-by: default avatarPaul Greenwalt <paul.greenwalt@intel.com>
Signed-off-by: default avatarKaren Sornek <karen.sornek@intel.com>
Tested-by: default avatarKonrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent 4d0dbd96
...@@ -1766,7 +1766,7 @@ int iavf_napi_poll(struct napi_struct *napi, int budget) ...@@ -1766,7 +1766,7 @@ int iavf_napi_poll(struct napi_struct *napi, int budget)
if (likely(napi_complete_done(napi, work_done))) if (likely(napi_complete_done(napi, work_done)))
iavf_update_enable_itr(vsi, q_vector); iavf_update_enable_itr(vsi, q_vector);
return min(work_done, budget - 1); return min_t(int, work_done, budget - 1);
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment