diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2015-02-02 12:26:34 -0500 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2015-02-23 07:06:23 -0500 |
commit | 7260194595a23e6e762cd444cb40044fd5fa25c0 (patch) | |
tree | 4f302a886daeba266b9e273d9c193765efcb0923 /drivers/edac/i82975x_edac.c | |
parent | c517d838eb7d07bbe9507871fab3931deccff539 (diff) |
EDAC: Delete unnecessary checks before pci_dev_put()
The pci_dev_put() function tests whether its argument is NULL and thus
the test around the call is not needed.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Link: http://lkml.kernel.org/r/54CFC12C.9010002@users.sourceforge.net
Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac/i82975x_edac.c')
-rw-r--r-- | drivers/edac/i82975x_edac.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/edac/i82975x_edac.c b/drivers/edac/i82975x_edac.c index 10b10521f62e..35ab66c623a3 100644 --- a/drivers/edac/i82975x_edac.c +++ b/drivers/edac/i82975x_edac.c | |||
@@ -685,9 +685,7 @@ fail1: | |||
685 | pci_unregister_driver(&i82975x_driver); | 685 | pci_unregister_driver(&i82975x_driver); |
686 | 686 | ||
687 | fail0: | 687 | fail0: |
688 | if (mci_pdev != NULL) | 688 | pci_dev_put(mci_pdev); |
689 | pci_dev_put(mci_pdev); | ||
690 | |||
691 | return pci_rc; | 689 | return pci_rc; |
692 | } | 690 | } |
693 | 691 | ||