EDAC: Delete unnecessary check before calling pci_dev_put()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 19 Nov 2014 15:00:13 +0000 (16:00 +0100)
committerBorislav Petkov <bp@suse.de>
Wed, 19 Nov 2014 15:33:48 +0000 (16:33 +0100)
commit0a98babd85b2e69d64ef6f2f8a5d029ddaa702e1
treeac47547d6f75491f4cd75e9f0d2e1f27482bd937
parent19ca5a3cc425cc9a8abedb0f4fb7b4e7ceee2255
EDAC: Delete unnecessary check before calling pci_dev_put()

The pci_dev_put() function tests whether its argument is NULL and then
returns immediately. Thus the test before 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/546CB20D.4070808@users.sourceforge.net
[ Boris: commit message. ]
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/i3000_edac.c
drivers/edac/i3200_edac.c
drivers/edac/i82443bxgx_edac.c
drivers/edac/x38_edac.c