projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
EDAC: Delete unnecessary checks before pci_dev_put()
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
edac
/
i82860_edac.c
diff --git
a/drivers/edac/i82860_edac.c
b/drivers/edac/i82860_edac.c
index 4382343a7c60ed3cc4d5d1ea4f7661c62b1fe5bc..ee1078cd3b966a1b473ca76b164947177cd9fdbc 100644
(file)
--- a/
drivers/edac/i82860_edac.c
+++ b/
drivers/edac/i82860_edac.c
@@
-343,20
+343,15
@@
fail1:
pci_unregister_driver(&i82860_driver);
fail0:
pci_unregister_driver(&i82860_driver);
fail0:
- if (mci_pdev != NULL)
- pci_dev_put(mci_pdev);
-
+ pci_dev_put(mci_pdev);
return pci_rc;
}
static void __exit i82860_exit(void)
{
edac_dbg(3, "\n");
return pci_rc;
}
static void __exit i82860_exit(void)
{
edac_dbg(3, "\n");
-
pci_unregister_driver(&i82860_driver);
pci_unregister_driver(&i82860_driver);
-
- if (mci_pdev != NULL)
- pci_dev_put(mci_pdev);
+ pci_dev_put(mci_pdev);
}
module_init(i82860_init);
}
module_init(i82860_init);