]> www.infradead.org Git - users/willy/pagecache.git/commitdiff
i40e: Remove unused i40e_asq_send_command_v2
authorDr. David Alan Gilbert <linux@treblig.org>
Thu, 2 Jan 2025 17:37:16 +0000 (17:37 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 6 Jan 2025 21:31:48 +0000 (13:31 -0800)
i40e_asq_send_command_v2() was added in 2022 by
commit 74073848b0d7 ("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>
drivers/net/ethernet/intel/i40e/i40e_adminq.c
drivers/net/ethernet/intel/i40e/i40e_prototype.h

index f73f5930fc58d278ce3077b0cd6e490321881cd9..175c1320c1431a370183c1c1f66bca04d92a91c2 100644 (file)
@@ -1016,16 +1016,6 @@ i40e_asq_send_command_atomic_v2(struct i40e_hw *hw,
        return status;
 }
 
-int
-i40e_asq_send_command_v2(struct i40e_hw *hw, struct i40e_aq_desc *desc,
-                        void *buff, /* can be NULL */ u16  buff_size,
-                        struct i40e_asq_cmd_details *cmd_details,
-                        enum i40e_admin_queue_err *aq_status)
-{
-       return i40e_asq_send_command_atomic_v2(hw, desc, buff, buff_size,
-                                              cmd_details, true, aq_status);
-}
-
 /**
  *  i40e_fill_default_direct_cmd_desc - AQ descriptor helper function
  *  @desc:     pointer to the temp descriptor (non DMA mem)
index ccb8af472cd7dd31d58cd1a49e7778c812101ef7..099bb8ab7d708c7919865327a467a9e9f49bb4ef 100644 (file)
@@ -27,13 +27,6 @@ i40e_asq_send_command(struct i40e_hw *hw, struct i40e_aq_desc *desc,
                      void *buff, /* can be NULL */ u16  buff_size,
                      struct i40e_asq_cmd_details *cmd_details);
 int
-i40e_asq_send_command_v2(struct i40e_hw *hw,
-                        struct i40e_aq_desc *desc,
-                        void *buff, /* can be NULL */
-                        u16  buff_size,
-                        struct i40e_asq_cmd_details *cmd_details,
-                        enum i40e_admin_queue_err *aq_status);
-int
 i40e_asq_send_command_atomic(struct i40e_hw *hw, struct i40e_aq_desc *desc,
                             void *buff, /* can be NULL */ u16  buff_size,
                             struct i40e_asq_cmd_details *cmd_details,