Thread (3 messages) read the whole thread 3 messages, 3 authors, 2021-04-13

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

From: Krzysztof Wilczyński <hidden>
Date: 2021-03-26 22:15:57
Also in: kernel-janitors, lkml

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 *epf_bar;
 	struct pci_epc *epc;
Thank you!

Reviewed-by: Krzysztof Wilczyński <redacted>

Krzysztof
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help