can: rcar_canfd: rcar_canfd_handle_channel_tx(): fix redundant assignment
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Fri, 20 Aug 2021 16:14:49 +0000 (17:14 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 25 Aug 2021 06:25:11 +0000 (08:25 +0200)
Fix redundant assignment of 'priv' to itself in
rcar_canfd_handle_channel_tx().

Fixes: 76e9353a80e9 ("can: rcar_canfd: Add support for RZ/G2L family")
Link: https://lore.kernel.org/r/20210820161449.18169-1-prabhakar.mahadev-lad.rj@bp.renesas.com
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/rcar/rcar_canfd.c

index 5d4d52a..c47988d 100644 (file)
@@ -1182,7 +1182,7 @@ static void rcar_canfd_state_change(struct net_device *ndev,
 
 static void rcar_canfd_handle_channel_tx(struct rcar_canfd_global *gpriv, u32 ch)
 {
-       struct rcar_canfd_channel *priv = priv = gpriv->ch[ch];
+       struct rcar_canfd_channel *priv = gpriv->ch[ch];
        struct net_device *ndev = priv->ndev;
        u32 sts;