Re: [PATCH] PCI: endpoint: remove redundant initialization of pointer dev

2021-04-13 Thread Lorenzo Pieralisi
On Fri, 26 Mar 2021 19:09:09 +, Colin King wrote: > The pointer dev is being initialized with a value that is > never read and it is being updated later with a new value. The > initialization is redundant and can be removed. Applied to pci/endpoint, thanks! [1/1] PCI: endpoint: Remove

Re: [PATCH] PCI: endpoint: remove redundant initialization of pointer dev

2021-03-26 Thread Krzysztof WilczyƄski
Hi Colin, > The pointer dev is being initialized with a value that is > never read and it is being updated later with a new value. The > initialization is redundant and can be removed. [...] > - struct device *dev = epf->epc->dev.parent; > + struct device *dev; > struct pci_epf_bar

[PATCH] PCI: endpoint: remove redundant initialization of pointer dev

2021-03-26 Thread Colin King
From: Colin Ian King The pointer dev is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King ---