Message ID | alpine.DEB.2.22.394.2202072228170.52266@hadrien (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | spi: spi-zynqmp-gqspi: fix for_each_child.cocci warnings | expand |
On Mon, Feb 07, 2022 at 10:30:15PM +0100, Julia Lawall wrote: > From: kernel test robot <lkp@intel.com> > > for_each_available_child_of_node should have of_node_put() before break. > > Generated by: scripts/coccinelle/iterators/for_each_child.cocci This doesn't apply against current code, please check and resend.
--- a/drivers/spi/spi-zynqmp-gqspi.c +++ b/drivers/spi/spi-zynqmp-gqspi.c @@ -1395,6 +1395,7 @@ static int zynqmp_qspi_probe(struct plat &rx_bus_width); if (!ret) { xqspi->rx_bus_width = rx_bus_width; + of_node_put(nc); break; } } @@ -1407,6 +1408,7 @@ static int zynqmp_qspi_probe(struct plat &tx_bus_width); if (!ret) { xqspi->tx_bus_width = tx_bus_width; + of_node_put(nc); break; } }