mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
spi: dw: Remove shadowed dws in dw_spi_setup()
The controller private data is already fetched at the start of dw_spi_setup(). Drop the redundant inner declaration that shadows it. Signed-off-by: Liang Hao <haohlliang@gmail.com> Link: https://patch.msgid.link/20260814114235.31281-1-haohlliang@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
923e41ed59
commit
11dfeb73d1
|
|
@ -1098,7 +1098,6 @@ static int dw_spi_setup(struct spi_device *spi)
|
|||
/* Only alloc on first setup */
|
||||
chip = spi_get_ctldata(spi);
|
||||
if (!chip) {
|
||||
struct dw_spi *dws = spi_controller_get_devdata(spi->controller);
|
||||
u32 rx_sample_dly_ns;
|
||||
|
||||
chip = kzalloc_obj(*chip);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user