]> git.baikalelectronics.ru Git - kernel.git/commitdiff
can: mcp251xfd: mcp251xfd_tef_obj_read(): fix typo in error message
authorMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 23 Apr 2021 09:26:56 +0000 (11:26 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sat, 8 Jan 2022 19:17:41 +0000 (20:17 +0100)
This patch fixes a typo in the error message in
mcp251xfd_tef_obj_read(), if trying to read too many objects.

Link: https://lore.kernel.org/all/20220105154300.1258636-3-mkl@pengutronix.de
Fixes: 9afc4ad0aed9 ("can: mcp25xxfd: add driver for Microchip MCP25xxFD SPI CAN")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c

index 509a76e66dd805690db87856a631ead44a0d4dbd..9d1a8992d8ce0210abf17e53befe21826a5fc4fa 100644 (file)
@@ -1335,7 +1335,7 @@ mcp251xfd_tef_obj_read(const struct mcp251xfd_priv *priv,
             len > tx_ring->obj_num ||
             offset + len > tx_ring->obj_num)) {
                netdev_err(priv->ndev,
-                          "Trying to read to many TEF objects (max=%d, offset=%d, len=%d).\n",
+                          "Trying to read too many TEF objects (max=%d, offset=%d, len=%d).\n",
                           tx_ring->obj_num, offset, len);
                return -ERANGE;
        }