diff options
| author | Jay Fang <[email protected]> | 2021-05-10 06:58:23 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2021-05-10 12:07:53 +0000 |
| commit | 9e37a3ab0627011fb63875e9a93094b6fc8ddf48 (patch) | |
| tree | e3a3af4276e73289aeebc4dd49f5c8c3efff441e /drivers/spi/spi-loopback-test.c | |
| parent | spi: delete repeated words in comments (diff) | |
| download | kernel-9e37a3ab0627011fb63875e9a93094b6fc8ddf48.tar.gz kernel-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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
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; } |
