Re: [PATCH 1/1] EDAC: Deletion of unnecessary checks before the function call "pci_dev_put"

2014-11-19 Thread Borislav Petkov
On Wed, Nov 19, 2014 at 04:06:53PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 19 Nov 2014 16:00:13 +0100 > > The pci_dev_put() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was dete

[PATCH 1/1] EDAC: Deletion of unnecessary checks before the function call "pci_dev_put"

2014-11-19 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 19 Nov 2014 16:00:13 +0100 The pci_dev_put() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drive