PCI: endpoint: Remove redundant initialization of pointer dev
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") Link: https://lore.kernel.org/r/20210326190909.622369-1-colin.king@canonical.com Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Krzysztof Wilczyński <kw@linux.com>
This commit is contained in:
parent
6613bc2301
commit
80c253bd7f
@ -113,7 +113,7 @@ EXPORT_SYMBOL_GPL(pci_epf_bind);
|
|||||||
void pci_epf_free_space(struct pci_epf *epf, void *addr, enum pci_barno bar,
|
void pci_epf_free_space(struct pci_epf *epf, void *addr, enum pci_barno bar,
|
||||||
enum pci_epc_interface_type type)
|
enum pci_epc_interface_type type)
|
||||||
{
|
{
|
||||||
struct device *dev = epf->epc->dev.parent;
|
struct device *dev;
|
||||||
struct pci_epf_bar *epf_bar;
|
struct pci_epf_bar *epf_bar;
|
||||||
struct pci_epc *epc;
|
struct pci_epc *epc;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user