]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
i82875p_edac: Drop redundant call to pci_get_device()
authorJean Delvare <jdelvare@suse.de>
Mon, 24 Feb 2014 15:03:16 +0000 (16:03 +0100)
committerBorislav Petkov <bp@suse.de>
Tue, 25 Feb 2014 09:13:46 +0000 (10:13 +0100)
commit5fdae419009764337c8f2bf143af57dcadfd228d
treea4b86757f7c8d3a0895908742a4c813066dbb80d
parent5576fb8696bf8d8ae60278c2aa4dc23eae9eb86e
i82875p_edac: Drop redundant call to pci_get_device()

The first call to pci_get_device() in i82875p_probe1() is useless. The
result is immediately reset at the beginning of
i82875p_setup_overfl_dev(), which then issues the same
pci_get_device() call. Dropping the redundant call avoids a device
reference leak.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Link: http://lkml.kernel.org/r/20140224160316.60e55fb6@endymion.delvare
Cc: Doug Thompson <dougthompson@xmission.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/i82875p_edac.c