mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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>
This commit is contained in:
parent
2f671e2dbf
commit
1d3c16a818
13 changed files with 22 additions and 66 deletions
|
@ -2228,12 +2228,7 @@ static void pmcraid_ioa_reset(struct pmcraid_cmd *cmd)
|
|||
/* Once either bist or pci reset is done, restore PCI config
|
||||
* space. If this fails, proceed with hard reset again
|
||||
*/
|
||||
if (pci_restore_state(pinstance->pdev)) {
|
||||
pmcraid_info("config-space error resetting again\n");
|
||||
pinstance->ioa_state = IOA_STATE_IN_RESET_ALERT;
|
||||
pmcraid_reset_alert(cmd);
|
||||
break;
|
||||
}
|
||||
pci_restore_state(pinstance->pdev);
|
||||
|
||||
/* fail all pending commands */
|
||||
pmcraid_fail_outstanding_cmds(pinstance);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue