git: c434b26cf3eb - main - i40e_validate_filter_settings: Remove unused variables.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 Apr 2022 21:52:56 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=c434b26cf3ebdb972f8e4121a5490a324a83d69c commit c434b26cf3ebdb972f8e4121a5490a324a83d69c Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-12 21:51:44 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-12 21:51:44 +0000 i40e_validate_filter_settings: Remove unused variables. Reviewed by: erj Differential Revision: https://reviews.freebsd.org/D34829 --- sys/dev/ixl/i40e_common.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/dev/ixl/i40e_common.c b/sys/dev/ixl/i40e_common.c index 332893938c19..1a7ec04f3089 100644 --- a/sys/dev/ixl/i40e_common.c +++ b/sys/dev/ixl/i40e_common.c @@ -5426,7 +5426,6 @@ static enum i40e_status_code i40e_validate_filter_settings(struct i40e_hw *hw, struct i40e_filter_control_settings *settings) { u32 fcoe_cntx_size, fcoe_filt_size; - u32 pe_cntx_size, pe_filt_size; u32 fcoe_fmax; u32 val; @@ -5471,8 +5470,6 @@ static enum i40e_status_code i40e_validate_filter_settings(struct i40e_hw *hw, case I40E_HASH_FILTER_SIZE_256K: case I40E_HASH_FILTER_SIZE_512K: case I40E_HASH_FILTER_SIZE_1M: - pe_filt_size = I40E_HASH_FILTER_BASE_SIZE; - pe_filt_size <<= (u32)settings->pe_filt_num; break; default: return I40E_ERR_PARAM; @@ -5489,8 +5486,6 @@ static enum i40e_status_code i40e_validate_filter_settings(struct i40e_hw *hw, case I40E_DMA_CNTX_SIZE_64K: case I40E_DMA_CNTX_SIZE_128K: case I40E_DMA_CNTX_SIZE_256K: - pe_cntx_size = I40E_DMA_CNTX_BASE_SIZE; - pe_cntx_size <<= (u32)settings->pe_cntx_num; break; default: return I40E_ERR_PARAM;