mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 07:23:14 +00:00
iavf: drop duplicate iavf_{add|del}_cloud_filter() calls
There are currently two pairs of identical checks and calls to iavf_{add|del}_cloud_filter(). Detected using the static analysis tool - Svace. Signed-off-by: Alexey Kodanev <aleksei.kodanev@bell-sw.com> Reviewed-by: Ahmed Zaki <ahmed.zaki@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
parent
eeb78df406
commit
c49172f7a8
@ -2170,19 +2170,10 @@ static int iavf_process_aq_command(struct iavf_adapter *adapter)
|
||||
iavf_add_cloud_filter(adapter);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (adapter->aq_required & IAVF_FLAG_AQ_DEL_CLOUD_FILTER) {
|
||||
iavf_del_cloud_filter(adapter);
|
||||
return 0;
|
||||
}
|
||||
if (adapter->aq_required & IAVF_FLAG_AQ_DEL_CLOUD_FILTER) {
|
||||
iavf_del_cloud_filter(adapter);
|
||||
return 0;
|
||||
}
|
||||
if (adapter->aq_required & IAVF_FLAG_AQ_ADD_CLOUD_FILTER) {
|
||||
iavf_add_cloud_filter(adapter);
|
||||
return 0;
|
||||
}
|
||||
if (adapter->aq_required & IAVF_FLAG_AQ_ADD_FDIR_FILTER) {
|
||||
iavf_add_fdir_filter(adapter);
|
||||
return IAVF_SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user