Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: spi-qpic-snand: avoid double assignment in qcom_spi_probe()

The snandc->dev pointer is being assigned twice in the qcom_spi_probe()
function. Remove the second assignment as that uses the same pointer
value than the first one.

No functional changes.

Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
Link: https://patch.msgid.link/20250808-qpic-snand-double-assign-fix-v2-1-1a3d0ed0d404@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Gabor Juhos and committed by
Mark Brown
a1d0b0ae 91e5722b

-1
-1
drivers/spi/spi-qpic-snand.c
··· 1549 1549 } 1550 1550 1551 1551 snandc->props = dev_data; 1552 - snandc->dev = &pdev->dev; 1553 1552 1554 1553 snandc->core_clk = devm_clk_get(dev, "core"); 1555 1554 if (IS_ERR(snandc->core_clk))