* [linux-next:master 8817/9522] drivers/net/can/rcar/rcar_canfd.c:1185:0: warning: Redundant assignment of 'priv' to itself. [selfAssignment]
@ 2021-08-20 15:49 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-20 15:49 UTC (permalink / raw)
To: Lad Prabhakar
Cc: kbuild-all, Linux Memory Management List, Marc Kleine-Budde,
Biju Das
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@intel.com>
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@lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-20 15:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-20 15:49 [linux-next:master 8817/9522] drivers/net/can/rcar/rcar_canfd.c:1185:0: warning: Redundant assignment of 'priv' to itself. [selfAssignment] kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).