]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
spi: fsl-dspi: Remove unneeded cast to same type
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 13 Mar 2023 10:58:34 +0000 (11:58 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 13 Mar 2023 14:09:03 +0000 (14:09 +0000)
There is never a need to cast a pointer to the same pointer type.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/a417735ca3ff629ee897327b163b23414673f0a3.1678704562.git.geert+renesas@glider.be
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c

index ee42285b5c5243a5ddc416ad23386b55e94f3bcc..4339485d202c05c7fac4f9897ea7d36872851bb8 100644 (file)
@@ -1068,7 +1068,7 @@ static int dspi_setup(struct spi_device *spi)
 
 static void dspi_cleanup(struct spi_device *spi)
 {
-       struct chip_data *chip = spi_get_ctldata((struct spi_device *)spi);
+       struct chip_data *chip = spi_get_ctldata(spi);
 
        dev_dbg(&spi->dev, "spi_device %u.%u cleanup\n",
                spi->controller->bus_num, spi_get_chipselect(spi, 0));