Skip to content

Commit d424b93

Browse files
Dr. David Alan Gilbertkuba-moo
authored andcommitted
i40e: Remove unused i40e_asq_send_command_v2
i40e_asq_send_command_v2() was added in 2022 by commit 7407384 ("i40e: Add new versions of send ASQ command functions") but hasn't been used. Remove it. (The _atomic_v2 version of the function is used, so leave it). Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Reviewed-by: Tony Nguyen <anthony.l.nguyen@intel.com> Link: https://patch.msgid.link/20250102173717.200359-9-linux@treblig.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent a324484 commit d424b93

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

drivers/net/ethernet/intel/i40e/i40e_adminq.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,16 +1016,6 @@ i40e_asq_send_command_atomic_v2(struct i40e_hw *hw,
10161016
return status;
10171017
}
10181018

1019-
int
1020-
i40e_asq_send_command_v2(struct i40e_hw *hw, struct i40e_aq_desc *desc,
1021-
void *buff, /* can be NULL */ u16 buff_size,
1022-
struct i40e_asq_cmd_details *cmd_details,
1023-
enum i40e_admin_queue_err *aq_status)
1024-
{
1025-
return i40e_asq_send_command_atomic_v2(hw, desc, buff, buff_size,
1026-
cmd_details, true, aq_status);
1027-
}
1028-
10291019
/**
10301020
* i40e_fill_default_direct_cmd_desc - AQ descriptor helper function
10311021
* @desc: pointer to the temp descriptor (non DMA mem)

drivers/net/ethernet/intel/i40e/i40e_prototype.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ i40e_asq_send_command(struct i40e_hw *hw, struct i40e_aq_desc *desc,
2727
void *buff, /* can be NULL */ u16 buff_size,
2828
struct i40e_asq_cmd_details *cmd_details);
2929
int
30-
i40e_asq_send_command_v2(struct i40e_hw *hw,
31-
struct i40e_aq_desc *desc,
32-
void *buff, /* can be NULL */
33-
u16 buff_size,
34-
struct i40e_asq_cmd_details *cmd_details,
35-
enum i40e_admin_queue_err *aq_status);
36-
int
3730
i40e_asq_send_command_atomic(struct i40e_hw *hw, struct i40e_aq_desc *desc,
3831
void *buff, /* can be NULL */ u16 buff_size,
3932
struct i40e_asq_cmd_details *cmd_details,

0 commit comments

Comments
 (0)