Skip to content

Commit dfa8121

Browse files
Uwe Kleine-Königbroonie
authored andcommitted
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>
1 parent b85ea95 commit dfa8121

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/spi/spi-cadence-xspi.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,6 @@ MODULE_DEVICE_TABLE(of, cdns_xspi_of_match);
619619

620620
static struct platform_driver cdns_xspi_platform_driver = {
621621
.probe = cdns_xspi_probe,
622-
.remove = NULL,
623622
.driver = {
624623
.name = CDNS_XSPI_NAME,
625624
.of_match_table = cdns_xspi_of_match,

0 commit comments

Comments
 (0)