Skip to content

Commit 4d1841d

Browse files
notrobroonie
authored andcommitted
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: Noralf Trønnes <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 76d2f7e commit 4d1841d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/spi/spi.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2788,11 +2788,6 @@ static int __spi_split_transfer_maxsize(struct spi_controller *ctlr,
27882788
size_t offset;
27892789
size_t count, i;
27902790

2791-
/* warn once about this fact that we are splitting a transfer */
2792-
dev_warn_once(&msg->spi->dev,
2793-
"spi_transfer of length %i exceed max length of %zu - needed to split transfers\n",
2794-
xfer->len, maxsize);
2795-
27962791
/* calculate how many we have to replace */
27972792
count = DIV_ROUND_UP(xfer->len, maxsize);
27982793

0 commit comments

Comments
 (0)