iavf: remove an unneeded variable
The variable `ret_code' used for returning is never changed in function `iavf_shutdown_adminq'. So that it can be removed and just return its initial value 0 at the end of `iavf_shutdown_adminq' function. Signed-off-by: Jason Wang <wangborong@cdjrlc.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
parent
a127adf2fc
commit
5322c68e58
@ -551,15 +551,13 @@ init_adminq_exit:
|
||||
**/
|
||||
enum iavf_status iavf_shutdown_adminq(struct iavf_hw *hw)
|
||||
{
|
||||
enum iavf_status ret_code = 0;
|
||||
|
||||
if (iavf_check_asq_alive(hw))
|
||||
iavf_aq_queue_shutdown(hw, true);
|
||||
|
||||
iavf_shutdown_asq(hw);
|
||||
iavf_shutdown_arq(hw);
|
||||
|
||||
return ret_code;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user