linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] spi: spi-qpic-snand: avoid double assignment in qcom_spi_probe()
@ 2025-08-04  7:52 Gabor Juhos
  2025-08-12 11:05 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Gabor Juhos @ 2025-08-04  7:52 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-spi, linux-kernel, Gabor Juhos

The snandc->dev poninter 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>
---
 drivers/spi/spi-qpic-snand.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/spi/spi-qpic-snand.c b/drivers/spi/spi-qpic-snand.c
index 0cfa0d960fd3c245c2bbf4f5e02d0fc0b13e7696..f6acf095fe196c3f778ba1c16157fc4bf273b66d 100644
--- a/drivers/spi/spi-qpic-snand.c
+++ b/drivers/spi/spi-qpic-snand.c
@@ -1541,7 +1541,6 @@ static int qcom_spi_probe(struct platform_device *pdev)
 	}
 
 	snandc->props = dev_data;
-	snandc->dev = &pdev->dev;
 
 	snandc->core_clk = devm_clk_get(dev, "core");
 	if (IS_ERR(snandc->core_clk))

---
base-commit: ffcfd071eec7973e58c4ffff7da4cb0e9ca7b667
change-id: 20250801-qpic-snand-double-assign-fix-cf4d78b9904a

Best regards,
-- 
Gabor Juhos <j4g8y7@gmail.com>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-08-12 11:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-04  7:52 [PATCH] spi: spi-qpic-snand: avoid double assignment in qcom_spi_probe() Gabor Juhos
2025-08-12 11:05 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).