Unverified Commit 4d1841d6 authored by Noralf Trønnes's avatar Noralf Trønnes Committed by Mark Brown
Browse files

spi: Remove warning in spi_split_transfers_maxsize()



Don't warn about splitting transfers, the info is available in the
statistics if needed.

Signed-off-by: default avatarNoralf Trønnes <noralf@tronnes.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 76d2f7ee
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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);