lkml.org 
[lkml]   [2022]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.16 0906/1039] can: mcp251xfd: mcp251xfd_tef_obj_read(): fix typo in error message
    Date
    From: Marc Kleine-Budde <mkl@pengutronix.de>

    commit 99e7cc3b3f85d9a583ab83f386315c59443509ae upstream.

    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: 55e5b97f003e ("can: mcp25xxfd: add driver for Microchip MCP25xxFD SPI CAN")
    Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c
    +++ b/drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c
    @@ -1336,7 +1336,7 @@ mcp251xfd_tef_obj_read(const struct mcp2
    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;
    }

    \
     
     \ /
      Last update: 2022-01-25 00:11    [W:2.502 / U:0.096 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site