mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
b85ea95d08
commit
dfa8121a6c
1 changed files with 0 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue