[linux-next:master 8817/9522] drivers/net/can/rcar/rcar_canfd.c:1185:0: warning: Redundant assignment of 'priv' to itself. [selfAssignment]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   86ed57fd8c93fdfaabb4f58e78455180fa7d8a84
commit: 76e9353a80e9e9ff65b362a6dd8545d84427ec30 [8817/9522] can: rcar_canfd: Add support for RZ/G2L family
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>


cppcheck warnings: (new ones prefixed by >>)
>> drivers/net/can/rcar/rcar_canfd.c:1185:0: warning: Redundant assignment of 'priv' to itself. [selfAssignment]
    struct rcar_canfd_channel *priv = priv = gpriv->ch[ch];
   ^

vim +/priv +1185 drivers/net/can/rcar/rcar_canfd.c

  1182	
  1183	static void rcar_canfd_handle_channel_tx(struct rcar_canfd_global *gpriv, u32 ch)
  1184	{
> 1185		struct rcar_canfd_channel *priv = priv = gpriv->ch[ch];
  1186		struct net_device *ndev = priv->ndev;
  1187		u32 sts;
  1188	
  1189		/* Handle Tx interrupts */
  1190		sts = rcar_canfd_read(priv->base,
  1191				      RCANFD_CFSTS(ch, RCANFD_CFFIFO_IDX));
  1192		if (likely(sts & RCANFD_CFSTS_CFTXIF))
  1193			rcar_canfd_tx_done(ndev);
  1194	}
  1195	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux