diff options
author | Jay Fang <f.fangjian@huawei.com> | 2021-05-10 14:58:23 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-05-10 13:07:53 +0100 |
commit | 9e37a3ab0627011fb63875e9a93094b6fc8ddf48 (patch) | |
tree | e3a3af4276e73289aeebc4dd49f5c8c3efff441e /drivers/spi/spi-loopback-test.c | |
parent | db56d03049524114696aa7158560d8f0e064c487 (diff) | |
download | lwn-9e37a3ab0627011fb63875e9a93094b6fc8ddf48.tar.gz lwn-9e37a3ab0627011fb63875e9a93094b6fc8ddf48.zip |
spi: spi-loopback-test: Fix 'tx_buf' might be 'rx_buf'
In function 'spi_test_run_iter': Value 'tx_buf' might be 'rx_buf'.
Signed-off-by: Jay Fang <f.fangjian@huawei.com>
Link: https://lore.kernel.org/r/1620629903-15493-5-git-send-email-f.fangjian@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-loopback-test.c')
-rw-r--r-- | drivers/spi/spi-loopback-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-loopback-test.c b/drivers/spi/spi-loopback-test.c index f1cf2232f0b5..4d4f77a186a9 100644 --- a/drivers/spi/spi-loopback-test.c +++ b/drivers/spi/spi-loopback-test.c @@ -875,7 +875,7 @@ static int spi_test_run_iter(struct spi_device *spi, test.transfers[i].len = len; if (test.transfers[i].tx_buf) test.transfers[i].tx_buf += tx_off; - if (test.transfers[i].tx_buf) + if (test.transfers[i].rx_buf) test.transfers[i].rx_buf += rx_off; } |