Skip to content
Verified Commit c0e035ac authored by Tudor Ambarus's avatar Tudor Ambarus Committed by Mark Brown
Browse files

spi: spi-mem: Compute length only when needed



When adjust_op_size is defined, len is never used. Move the len
computation where it's actually used.

Signed-off-by: default avatarTudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20200228160735.1565047-1-tudor.ambarus@microchip.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 3d24b2a4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment