From: Jean Delvare Date: Mon, 24 Feb 2014 15:03:16 +0000 (+0100) Subject: i82875p_edac: Drop redundant call to pci_get_device() X-Git-Tag: v3.15-rc1~144^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fdae419009764337c8f2bf143af57dcadfd228d;p=pandora-kernel.git 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 Link: http://lkml.kernel.org/r/20140224160316.60e55fb6@endymion.delvare Cc: Doug Thompson Signed-off-by: Borislav Petkov --- Reading git-diff-tree failed