linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] spi: cadence-xspi: Drop useless assignment to NULL
@ 2023-11-05 14:39 Uwe Kleine-König
  2023-11-13 19:40 ` Mark Brown
       [not found] ` <233689d7-9409-406b-9383-49f10cd29336@web.de>
  0 siblings, 2 replies; 9+ messages in thread
From: Uwe Kleine-König @ 2023-11-05 14:39 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-spi, kernel

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>
---
 drivers/spi/spi-cadence-xspi.c | 1 -
 1 file changed, 1 deletion(-)

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,

base-commit: ffc253263a1375a65fa6c9f62a893e9767fbebfa
-- 
2.42.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-11-22 19:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-05 14:39 [PATCH] spi: cadence-xspi: Drop useless assignment to NULL Uwe Kleine-König
2023-11-13 19:40 ` Mark Brown
     [not found] ` <233689d7-9409-406b-9383-49f10cd29336@web.de>
2023-11-20 22:18   ` Amit Dhingra
2023-11-21  7:34     ` Markus Elfring
2023-11-21  7:57       ` Uwe Kleine-König
2023-11-21  8:19         ` Markus Elfring
2023-11-21  8:32           ` Uwe Kleine-König
2023-11-21  8:51             ` Markus Elfring
2023-11-22 19:50             ` Amit Dhingra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).