From: Vladimir Oltean Date: Wed, 4 Mar 2020 22:00:35 +0000 (+0200) Subject: spi: spi-fsl-dspi: Don't mask off undefined bits X-Git-Tag: v5.10.7~2120^2~42^2~40^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5542bd797190d5d77f1ad3a6df9628f26d117b31;p=platform%2Fkernel%2Flinux-rpi.git 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 Link: https://lore.kernel.org/r/20200304220044.11193-4-olteanv@gmail.com Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index 63ec1d6..b92c2b8 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; }