]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
EDAC: Delete unnecessary checks before pci_dev_put()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 2 Feb 2015 17:26:34 +0000 (18:26 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 23 Feb 2015 12:06:23 +0000 (13:06 +0100)
commit7260194595a23e6e762cd444cb40044fd5fa25c0
tree4f302a886daeba266b9e273d9c193765efcb0923
parentc517d838eb7d07bbe9507871fab3931deccff539
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>
drivers/edac/i82443bxgx_edac.c
drivers/edac/i82860_edac.c
drivers/edac/i82875p_edac.c
drivers/edac/i82975x_edac.c