From: Wenzhuo Lu Date: Fri, 5 Jun 2015 05:21:38 +0000 (+0800) Subject: ixgbe/base: remove useless function X-Git-Tag: spdx-start~9098 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=44d15731e328918d21e29fe1b44f242c69cdf9fb;p=dpdk.git ixgbe/base: remove useless function Remove the function which is not called by the drivers. Signed-off-by: Wenzhuo Lu Acked-by: Helin Zhang --- diff --git a/drivers/net/ixgbe/base/ixgbe_common.c b/drivers/net/ixgbe/base/ixgbe_common.c index 81793549b0..11cc2f4b33 100644 --- a/drivers/net/ixgbe/base/ixgbe_common.c +++ b/drivers/net/ixgbe/base/ixgbe_common.c @@ -4345,36 +4345,6 @@ u8 ixgbe_calculate_checksum(u8 *buffer, u32 length) return (u8) (0 - sum); } -/** - * ixgbe_get_hi_status - Get host interface command status - * @hw: pointer to the HW structure - * @return_code: reads and returns code - * - * Check if command returned with success. On success return IXGBE_SUCCESS - * else return IXGBE_ERR_HOST_INTERFACE_COMMAND. - **/ -s32 ixgbe_get_hi_status(struct ixgbe_hw *hw, u8 *ret_status) -{ - struct ixgbe_hic_hdr response; - u32 *response_val = (u32 *)&response; - - DEBUGFUNC("ixgbe_get_host_interface_status"); - - /* Read the command response */ - *response_val = IXGBE_CPU_TO_LE32(IXGBE_READ_REG(hw, IXGBE_FLEX_MNG)); - - if (ret_status) - *ret_status = response.cmd_or_resp.ret_status; - - if (response.cmd_or_resp.ret_status != FW_CEM_RESP_STATUS_SUCCESS) { - DEBUGOUT1("Host interface error=%x.\n", - response.cmd_or_resp.ret_status); - return IXGBE_ERR_HOST_INTERFACE_COMMAND; - } - - return IXGBE_SUCCESS; -} - /** * ixgbe_host_interface_command - Issue command to manageability block * @hw: pointer to the HW structure diff --git a/drivers/net/ixgbe/base/ixgbe_common.h b/drivers/net/ixgbe/base/ixgbe_common.h index b67d46c729..25d5eb166d 100644 --- a/drivers/net/ixgbe/base/ixgbe_common.h +++ b/drivers/net/ixgbe/base/ixgbe_common.h @@ -155,7 +155,6 @@ void ixgbe_enable_relaxed_ordering_gen2(struct ixgbe_hw *hw); s32 ixgbe_set_fw_drv_ver_generic(struct ixgbe_hw *hw, u8 maj, u8 min, u8 build, u8 ver); u8 ixgbe_calculate_checksum(u8 *buffer, u32 length); -s32 ixgbe_get_hi_status(struct ixgbe_hw *hw, u8 *ret_status); s32 ixgbe_host_interface_command(struct ixgbe_hw *hw, u32 *buffer, u32 length, u32 timeout, bool return_data);