]> git.baikalelectronics.ru Git - kernel.git/commitdiff
iavf: remove an unneeded variable
authorJason Wang <wangborong@cdjrlc.com>
Sun, 12 Dec 2021 08:10:01 +0000 (16:10 +0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 7 Jan 2022 17:04:21 +0000 (09:04 -0800)
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>
drivers/net/ethernet/intel/iavf/iavf_adminq.c

index 9fa3fa99b4c20b222943016df6d243d9b441fb3e..cd4e6a22d0f9fb9d2aa835580334d3d40d44238e 100644 (file)
@@ -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;
 }
 
 /**