diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2020-03-04 23:00:35 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-03-05 15:06:16 +0100 |
commit | 5542bd797190d5d77f1ad3a6df9628f26d117b31 (patch) | |
tree | 18708c978ee4d424108b1ed8dd7582b7329883aa /drivers/spi/spi-fsl-dspi.c | |
parent | spi: spi-fsl-dspi: Remove unused chip->void_write_data (diff) | |
download | linux-5542bd797190d5d77f1ad3a6df9628f26d117b31.tar.xz linux-5542bd797190d5d77f1ad3a6df9628f26d117b31.zip |
spi: spi-fsl-dspi: Don't mask off undefined bits
This is a useless operation, and if the driver needs to do that, there's
something deeply wrong going on.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20200304220044.11193-4-olteanv@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-fsl-dspi.c')
-rw-r--r-- | drivers/spi/spi-fsl-dspi.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index 63ec1d634d08..b92c2b84a94b 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi-fsl-dspi.c @@ -274,9 +274,6 @@ static void dspi_push_rx(struct fsl_dspi *dspi, u32 rxdata) if (!dspi->rx) return; - /* Mask off undefined bits */ - rxdata &= (1 << dspi->bits_per_word) - 1; - memcpy(dspi->rx, &rxdata, dspi->bytes_per_word); dspi->rx += dspi->bytes_per_word; } |