Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac9c5c6d authored by Henry Tieman's avatar Henry Tieman Committed by Jeff Kirsher
Browse files

i40e: removing unreachable code



The return value from i40e_shutdown_adminq() is always 0
(I40E_SUCCESS). So, the test for non-0 will never be true. Cleanup
by removing the test and debug print statement.

Change-ID: Ie51e8e37515c3e3a6a9ff26fa951d0e5e24343c1
Signed-off-by: default avatarHenry Tieman <henry.w.tieman@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent a3417d28
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -11333,11 +11333,7 @@ static void i40e_remove(struct pci_dev *pdev)
	}

	/* shutdown the adminq */
	ret_code = i40e_shutdown_adminq(hw);
	if (ret_code)
		dev_warn(&pdev->dev,
			 "Failed to destroy the Admin Queue resources: %d\n",
			 ret_code);
	i40e_shutdown_adminq(hw);

	/* destroy the locks only once, here */
	mutex_destroy(&hw->aq.arq_mutex);