summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-cadence-xspi.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-11-05 15:39:33 +0100
committerMark Brown <broonie@kernel.org>2023-11-13 01:26:38 +0000
commitdfa8121a6ca7725576f71f7b505f711e1148f151 (patch)
treeeb1e5919543b97d31a6a8bd168811fa8647d278d /drivers/spi/spi-cadence-xspi.c
parentb85ea95d086471afb4ad062012a4d73cd328fa86 (diff)
spi: cadence-xspi: Drop useless assignment to NULL
Static structs are initialized with zeros for unspecified fields. So there is no advantage to explicitly initialize .remove with NULL and the assignment can be dropped without side effects. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20231105143932.3722920-2-u.kleine-koenig@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-cadence-xspi.c')
-rw-r--r--drivers/spi/spi-cadence-xspi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/spi/spi-cadence-xspi.c b/drivers/spi/spi-cadence-xspi.c
index b7e04b03be58..8648b8eb080d 100644
--- a/drivers/spi/spi-cadence-xspi.c
+++ b/drivers/spi/spi-cadence-xspi.c
@@ -619,7 +619,6 @@ MODULE_DEVICE_TABLE(of, cdns_xspi_of_match);
static struct platform_driver cdns_xspi_platform_driver = {
.probe = cdns_xspi_probe,
- .remove = NULL,
.driver = {
.name = CDNS_XSPI_NAME,
.of_match_table = cdns_xspi_of_match,