Skip to content

Commit

Permalink
cxgb3: Removing unused return variable
Browse files Browse the repository at this point in the history
Currently the ret variable is not used for anything other than
receive the value of the t3_adapter_error(), which will always be 0,
because the reset parameter is 0.

Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Breno Leitao authored and David S. Miller committed Nov 28, 2010
1 parent 82a39eb commit c661c4a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/cxgb3/cxgb3_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3006,12 +3006,11 @@ static pci_ers_result_t t3_io_error_detected(struct pci_dev *pdev,
pci_channel_state_t state)
{
struct adapter *adapter = pci_get_drvdata(pdev);
int ret;

if (state == pci_channel_io_perm_failure)
return PCI_ERS_RESULT_DISCONNECT;

ret = t3_adapter_error(adapter, 0, 0);
t3_adapter_error(adapter, 0, 0);

/* Request a slot reset. */
return PCI_ERS_RESULT_NEED_RESET;
Expand Down

0 comments on commit c661c4a

Please sign in to comment.