linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Marc Kleine-Budde <mkl@pengutronix.de>,
	Biju Das <biju.das.jz@bp.renesas.com>
Subject: [linux-next:master 8817/9522] drivers/net/can/rcar/rcar_canfd.c:1185:0: warning: Redundant assignment of 'priv' to itself. [selfAssignment]
Date: Fri, 20 Aug 2021 23:49:50 +0800	[thread overview]
Message-ID: <202108202340.2F7t49WE-lkp@intel.com> (raw)

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


                 reply	other threads:[~2021-08-20 15:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202108202340.2F7t49WE-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=mkl@pengutronix.de \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).