diff options
| -rw-r--r-- | drivers/net/ethernet/intel/i40e/i40e_common.c | 4 | ||||
| -rw-r--r-- | drivers/net/ethernet/intel/i40evf/i40e_common.c | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_common.c b/drivers/net/ethernet/intel/i40e/i40e_common.c index bb948dd92474..922cdcc45c54 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_common.c +++ b/drivers/net/ethernet/intel/i40e/i40e_common.c | |||
| @@ -1775,9 +1775,9 @@ static void i40e_parse_discover_capabilities(struct i40e_hw *hw, void *buff, | |||
| 1775 | cap = (struct i40e_aqc_list_capabilities_element_resp *) buff; | 1775 | cap = (struct i40e_aqc_list_capabilities_element_resp *) buff; |
| 1776 | 1776 | ||
| 1777 | if (list_type_opc == i40e_aqc_opc_list_dev_capabilities) | 1777 | if (list_type_opc == i40e_aqc_opc_list_dev_capabilities) |
| 1778 | p = (struct i40e_hw_capabilities *)&hw->dev_caps; | 1778 | p = &hw->dev_caps; |
| 1779 | else if (list_type_opc == i40e_aqc_opc_list_func_capabilities) | 1779 | else if (list_type_opc == i40e_aqc_opc_list_func_capabilities) |
| 1780 | p = (struct i40e_hw_capabilities *)&hw->func_caps; | 1780 | p = &hw->func_caps; |
| 1781 | else | 1781 | else |
| 1782 | return; | 1782 | return; |
| 1783 | 1783 | ||
diff --git a/drivers/net/ethernet/intel/i40evf/i40e_common.c b/drivers/net/ethernet/intel/i40evf/i40e_common.c index c688a0fc5c29..ae084378faab 100644 --- a/drivers/net/ethernet/intel/i40evf/i40e_common.c +++ b/drivers/net/ethernet/intel/i40evf/i40e_common.c | |||
| @@ -565,8 +565,7 @@ i40e_status i40e_aq_send_msg_to_pf(struct i40e_hw *hw, | |||
| 565 | details.async = true; | 565 | details.async = true; |
| 566 | cmd_details = &details; | 566 | cmd_details = &details; |
| 567 | } | 567 | } |
| 568 | status = i40evf_asq_send_command(hw, (struct i40e_aq_desc *)&desc, msg, | 568 | status = i40evf_asq_send_command(hw, &desc, msg, msglen, cmd_details); |
| 569 | msglen, cmd_details); | ||
| 570 | return status; | 569 | return status; |
| 571 | } | 570 | } |
| 572 | 571 | ||
