Commit 903e6832 authored by Lihong Yang's avatar Lihong Yang Committed by Jeff Kirsher

i40evf: remove unnecessary error checking against i40e_shutdown_adminq

The i40e_shutdown_adminq function never returns failure. There is no need to
check the non-0 return value. Clean up the unnecessary error checking and
warning against it.

Change-ID: Ibb616f09cfb93bd1a872ebf3241a15fb8354b31b
Signed-off-by: default avatarLihong Yang <lihong.yang@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 841493a3
...@@ -1785,8 +1785,7 @@ static void i40evf_reset_task(struct work_struct *work) ...@@ -1785,8 +1785,7 @@ static void i40evf_reset_task(struct work_struct *work)
i40evf_free_all_tx_resources(adapter); i40evf_free_all_tx_resources(adapter);
/* kill and reinit the admin queue */ /* kill and reinit the admin queue */
if (i40evf_shutdown_adminq(hw)) i40evf_shutdown_adminq(hw);
dev_warn(&adapter->pdev->dev, "Failed to shut down adminq\n");
adapter->current_op = I40E_VIRTCHNL_OP_UNKNOWN; adapter->current_op = I40E_VIRTCHNL_OP_UNKNOWN;
err = i40evf_init_adminq(hw); err = i40evf_init_adminq(hw);
if (err) if (err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment