projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4922b9c
)
x86: pmc_atom: Clean up init function
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Wed, 14 Jan 2015 16:39:34 +0000
(18:39 +0200)
committer
Thomas Gleixner
<tglx@linutronix.de>
Tue, 20 Jan 2015 11:50:14 +0000
(12:50 +0100)
There is no need to use err variable.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Aubrey Li <aubrey.li@linux.intel.com>
Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Kumar P. Mahesh <mahesh.kumar.p@intel.com>
Link:
http://lkml.kernel.org/r/1421253575-22509-5-git-send-email-andriy.shevchenko@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/pmc_atom.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/pmc_atom.c
b/arch/x86/kernel/pmc_atom.c
index 6b62f55f40c436ee417e9d74d4e6858995aa0d34..f8becc43295c9a83a17c6b7b34cd4a9f670e34b7 100644
(file)
--- a/
arch/x86/kernel/pmc_atom.c
+++ b/
arch/x86/kernel/pmc_atom.c
@@
-288,7
+288,6
@@
MODULE_DEVICE_TABLE(pci, pmc_pci_ids);
static int __init pmc_atom_init(void)
{
- int err = -ENODEV;
struct pci_dev *pdev = NULL;
const struct pci_device_id *ent;
@@
-302,14
+301,11
@@
static int __init pmc_atom_init(void)
*/
for_each_pci_dev(pdev) {
ent = pci_match_id(pmc_pci_ids, pdev);
- if (ent) {
- err = pmc_setup_dev(pdev);
- goto out;
- }
+ if (ent)
+ return pmc_setup_dev(pdev);
}
/* Device not found. */
-out:
- return err;
+ return -ENODEV;
}
module_init(pmc_atom_init);