diff options
-rw-r--r-- | drivers/net/ethernet/intel/i40evf/i40e_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40evf/i40e_common.c b/drivers/net/ethernet/intel/i40evf/i40e_common.c index a43155afdbe2..4ea90bf239bb 100644 --- a/drivers/net/ethernet/intel/i40evf/i40e_common.c +++ b/drivers/net/ethernet/intel/i40evf/i40e_common.c | |||
@@ -551,6 +551,7 @@ i40e_status i40e_aq_send_msg_to_pf(struct i40e_hw *hw, | |||
551 | struct i40e_asq_cmd_details *cmd_details) | 551 | struct i40e_asq_cmd_details *cmd_details) |
552 | { | 552 | { |
553 | struct i40e_aq_desc desc; | 553 | struct i40e_aq_desc desc; |
554 | struct i40e_asq_cmd_details details; | ||
554 | i40e_status status; | 555 | i40e_status status; |
555 | 556 | ||
556 | i40evf_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_send_msg_to_pf); | 557 | i40evf_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_send_msg_to_pf); |
@@ -565,7 +566,6 @@ i40e_status i40e_aq_send_msg_to_pf(struct i40e_hw *hw, | |||
565 | desc.datalen = cpu_to_le16(msglen); | 566 | desc.datalen = cpu_to_le16(msglen); |
566 | } | 567 | } |
567 | if (!cmd_details) { | 568 | if (!cmd_details) { |
568 | struct i40e_asq_cmd_details details; | ||
569 | memset(&details, 0, sizeof(details)); | 569 | memset(&details, 0, sizeof(details)); |
570 | details.async = true; | 570 | details.async = true; |
571 | cmd_details = &details; | 571 | cmd_details = &details; |