wifi: wilc1000: remove setting msg.spi
authorDavid Lechner <dlechner@baylibre.com>
Thu, 1 Feb 2024 20:12:47 +0000 (14:12 -0600)
committerKalle Valo <kvalo@kernel.org>
Mon, 5 Feb 2024 18:17:48 +0000 (20:17 +0200)
commitbed41a344426a407ba5e103b2877a2e560e72229
treed285b4e902bbf666c63b702d6711cdadd088b7de
parent2719a9e7156c4b3983b43db467c1ff96801bda99
wifi: wilc1000: remove setting msg.spi

Calling spi_sync() unconditionally sets the spi field of struct
spi_message. Therefore setting msg.spi = spi before calling spi_sync()
has no effect and can be removed.

(spi_message_add_tail() does not access this field.)

Signed-off-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240201201248.2334798-2-dlechner@baylibre.com
drivers/net/wireless/microchip/wilc1000/spi.c