aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2015-07-08 10:45:07 -0400
committerThomas Gleixner <tglx@linutronix.de>2015-07-16 11:48:48 -0400
commitb93fb9f6aee0ea6fe60ed20278b9c7fea70a58ff (patch)
tree32fda70f012e34d241d1c80661517ac80fd929bf
parent64279c7e05264f9774c6c9ee65a5b9ed186e442b (diff)
x86/platform/iosf_mbi: Remove NULL pointer checks for pci_dev_put()
pci_dev_put() has already a check for NULL pointer. [ tglx: Massaged changelog ] Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: David E . Box <david.e.box@linux.intel.com> Link: http://lkml.kernel.org/r/1436366709-17683-4-git-send-email-andriy.shevchenko@linux.intel.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--arch/x86/platform/intel/iosf_mbi.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/x86/platform/intel/iosf_mbi.c b/arch/x86/platform/intel/iosf_mbi.c
index 2362da912414..0b331051b241 100644
--- a/arch/x86/platform/intel/iosf_mbi.c
+++ b/arch/x86/platform/intel/iosf_mbi.c
@@ -314,10 +314,8 @@ static void __exit iosf_mbi_exit(void)
314 iosf_debugfs_remove(); 314 iosf_debugfs_remove();
315 315
316 pci_unregister_driver(&iosf_mbi_pci_driver); 316 pci_unregister_driver(&iosf_mbi_pci_driver);
317 if (mbi_pdev) { 317 pci_dev_put(mbi_pdev);
318 pci_dev_put(mbi_pdev); 318 mbi_pdev = NULL;
319 mbi_pdev = NULL;
320 }
321} 319}
322 320
323module_init(iosf_mbi_init); 321module_init(iosf_mbi_init);