diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/cxgb3/cxgb3_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c index 046d846c652d..386461750d0f 100644 --- a/drivers/net/cxgb3/cxgb3_main.c +++ b/drivers/net/cxgb3/cxgb3_main.c | |||
@@ -3006,12 +3006,11 @@ static pci_ers_result_t t3_io_error_detected(struct pci_dev *pdev, | |||
3006 | pci_channel_state_t state) | 3006 | pci_channel_state_t state) |
3007 | { | 3007 | { |
3008 | struct adapter *adapter = pci_get_drvdata(pdev); | 3008 | struct adapter *adapter = pci_get_drvdata(pdev); |
3009 | int ret; | ||
3010 | 3009 | ||
3011 | if (state == pci_channel_io_perm_failure) | 3010 | if (state == pci_channel_io_perm_failure) |
3012 | return PCI_ERS_RESULT_DISCONNECT; | 3011 | return PCI_ERS_RESULT_DISCONNECT; |
3013 | 3012 | ||
3014 | ret = t3_adapter_error(adapter, 0, 0); | 3013 | t3_adapter_error(adapter, 0, 0); |
3015 | 3014 | ||
3016 | /* Request a slot reset. */ | 3015 | /* Request a slot reset. */ |
3017 | return PCI_ERS_RESULT_NEED_RESET; | 3016 | return PCI_ERS_RESULT_NEED_RESET; |