diff options
author | Jon Mason <jon.mason@exar.com> | 2010-11-30 18:43:26 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-12-23 15:53:09 -0500 |
commit | 1d3c16a818e992c199844954d95c17fd7ce6cbba (patch) | |
tree | 6f54b4153b8f7e54bdb5a8abc3ceffa7b4eec0e2 /drivers/net/sky2.c | |
parent | 2f671e2dbff6eb5ef4e2600adbec550c13b8fe72 (diff) |
PCI: make pci_restore_state return void
pci_restore_state only ever returns 0, thus there is no benefit in
having it return any value. Also, a large majority of the callers do
not check the return code of pci_restore_state. Make the
pci_restore_state a void return and avoid the overhead.
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Jon Mason <jon.mason@exar.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/net/sky2.c')
-rw-r--r-- | drivers/net/sky2.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index d6577084ce70..be3aee782760 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c | |||
@@ -4969,10 +4969,7 @@ static int sky2_resume(struct pci_dev *pdev) | |||
4969 | if (err) | 4969 | if (err) |
4970 | goto out; | 4970 | goto out; |
4971 | 4971 | ||
4972 | err = pci_restore_state(pdev); | 4972 | pci_restore_state(pdev); |
4973 | if (err) | ||
4974 | goto out; | ||
4975 | |||
4976 | pci_enable_wake(pdev, PCI_D0, 0); | 4973 | pci_enable_wake(pdev, PCI_D0, 0); |
4977 | 4974 | ||
4978 | /* Re-enable all clocks */ | 4975 | /* Re-enable all clocks */ |