spi: Remove warning in spi_split_transfers_maxsize()
authorNoralf Trønnes <noralf@tronnes.org>
Sat, 13 Apr 2019 18:24:12 +0000 (20:24 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 2 May 2019 01:37:50 +0000 (10:37 +0900)
Don't warn about splitting transfers, the info is available in the
statistics if needed.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c

index 86a3134..3c6c610 100644 (file)
@@ -2788,11 +2788,6 @@ static int __spi_split_transfer_maxsize(struct spi_controller *ctlr,
        size_t offset;
        size_t count, i;
 
-       /* warn once about this fact that we are splitting a transfer */
-       dev_warn_once(&msg->spi->dev,
-                     "spi_transfer of length %i exceed max length of %zu - needed to split transfers\n",
-                     xfer->len, maxsize);
-
        /* calculate how many we have to replace */
        count = DIV_ROUND_UP(xfer->len, maxsize);