diff options
| author | Alexey Kodanev <[email protected]> | 2024-02-26 13:21:02 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2024-03-06 17:32:58 +0000 |
| commit | c49172f7a8cf0afd94aec04a6db6145e6360547d (patch) | |
| tree | a5bf665a28109238fd1d2429dd1d52342d9e4d2e /drivers/net/ethernet/intel/iavf/iavf_main.c | |
| parent | inet: Add getsockopt support for IP_ROUTER_ALERT and IPV6_ROUTER_ALERT (diff) | |
| download | kernel-c49172f7a8cf0afd94aec04a6db6145e6360547d.tar.gz kernel-c49172f7a8cf0afd94aec04a6db6145e6360547d.zip | |
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 <[email protected]>
Reviewed-by: Ahmed Zaki <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/iavf/iavf_main.c')
| -rw-r--r-- | drivers/net/ethernet/intel/iavf/iavf_main.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/ethernet/intel/iavf/iavf_main.c b/drivers/net/ethernet/intel/iavf/iavf_main.c index aefec6bd3b67..ef2440f3abf8 100644 --- a/drivers/net/ethernet/intel/iavf/iavf_main.c +++ b/drivers/net/ethernet/intel/iavf/iavf_main.c @@ -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; |
