Commit 754834b9 authored by Quentin Lambert's avatar Quentin Lambert Committed by Bjorn Helgaas

PCI: Simplify if-return sequences

Simplify a trivial if-return sequence.  Possibly combine with a preceding
function call.

Generated by: scripts/coccinelle/misc/simple_return.cocci
Signed-off-by: default avatarQuentin Lambert <lambert.quentin@gmail.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent ff0387c3
...@@ -376,10 +376,7 @@ int __init ibmphp_rsrc_init (void) ...@@ -376,10 +376,7 @@ int __init ibmphp_rsrc_init (void)
if (rc) if (rc)
return rc; return rc;
} }
rc = once_over (); /* This is to align ranges (so no -1) */ return once_over (); /* This is to align ranges (so no -1) */
if (rc)
return rc;
return 0;
} }
/******************************************************************************** /********************************************************************************
......
...@@ -1012,11 +1012,7 @@ int pci_save_state(struct pci_dev *dev) ...@@ -1012,11 +1012,7 @@ int pci_save_state(struct pci_dev *dev)
if (i != 0) if (i != 0)
return i; return i;
i = pci_save_vc_state(dev); return pci_save_vc_state(dev);
if (i != 0)
return i;
return 0;
} }
EXPORT_SYMBOL(pci_save_state); EXPORT_SYMBOL(pci_save_state);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment