aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorJon Mason <jon.mason@exar.com>2010-11-30 17:43:26 -0600
committerJesse Barnes <jbarnes@virtuousgeek.org>2010-12-23 12:53:09 -0800
commit1d3c16a818e992c199844954d95c17fd7ce6cbba (patch)
tree6f54b4153b8f7e54bdb5a8abc3ceffa7b4eec0e2 /drivers/staging
parent2f671e2dbff6eb5ef4e2600adbec550c13b8fe72 (diff)
downloadkernel_samsung_smdk4412-1d3c16a818e992c199844954d95c17fd7ce6cbba.zip
kernel_samsung_smdk4412-1d3c16a818e992c199844954d95c17fd7ce6cbba.tar.gz
kernel_samsung_smdk4412-1d3c16a818e992c199844954d95c17fd7ce6cbba.tar.bz2
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/staging')
-rw-r--r--drivers/staging/sm7xx/smtcfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/sm7xx/smtcfb.c b/drivers/staging/sm7xx/smtcfb.c
index 24f47d6..7162dee 100644
--- a/drivers/staging/sm7xx/smtcfb.c
+++ b/drivers/staging/sm7xx/smtcfb.c
@@ -1071,7 +1071,7 @@ static int __maybe_unused smtcfb_resume(struct pci_dev *pdev)
/* when resuming, restore pci data and fb cursor */
if (pdev->dev.power.power_state.event != PM_EVENT_FREEZE) {
retv = pci_set_power_state(pdev, PCI_D0);
- retv = pci_restore_state(pdev);
+ pci_restore_state(pdev);
if (pci_enable_device(pdev))
return -1;
pci_set_master(pdev);