mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 11:06:41 -05:00
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>
This commit is contained in:
@@ -1549,7 +1549,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))
|
||||
|
||||
Reference in New Issue
Block a user