diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-08-24 19:22:07 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-09-11 01:31:49 +0100 |
commit | 12c8d7a76cd6100a2f35b9ef4b87d11128b9105b (patch) | |
tree | 56218c16788c220cef81bd78202fd0f26ec2b4b5 /scripts/rustdoc_test_builder.rs | |
parent | 2d98bdad98aec8238a21712c22d97ff53f290c55 (diff) |
spidev: Decrease indentation level in spidev_ioctl() SPI_IOC_RD_MODE*
Instead of defining a local controller variable inside an indented
block, move the definition to the top of spidev_ioctl() and reuse
it in the SPI_IOC_RD_MODE* and SPI_IOC_WR_MODE* cases.
This drops unneeded indentation and reduces amount of LoCs.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Link: https://lore.kernel.org/r/20230824162209.2890440-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions