From: Florinel Iordache <florinel.iordache@nxp.com>
To: madalin.bucur@nxp.com, davem@davemloft.net, kuba@kernel.org,
netdev@vger.kernel.org, Markus.Elfring@web.de
Cc: linux-kernel@vger.kernel.org,
Florinel Iordache <florinel.iordache@nxp.com>
Subject: [PATCH net v2 3/5] fsl/fman: fix unreachable code
Date: Fri, 31 Jul 2020 13:49:20 +0300 [thread overview]
Message-ID: <1596192562-7629-4-git-send-email-florinel.iordache@nxp.com> (raw)
In-Reply-To: <1596192562-7629-1-git-send-email-florinel.iordache@nxp.com>
The parameter 'priority' is incorrectly forced to zero which ultimately
induces logically dead code in the subsequent lines.
Fixes: 57ba4c9b56d8 ("fsl/fman: Add FMan MAC support")
Signed-off-by: Florinel Iordache <florinel.iordache@nxp.com>
---
drivers/net/ethernet/freescale/fman/fman_memac.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/net/ethernet/freescale/fman/fman_memac.c b/drivers/net/ethernet/freescale/fman/fman_memac.c
index a5500ed..bb02b37 100644
--- a/drivers/net/ethernet/freescale/fman/fman_memac.c
+++ b/drivers/net/ethernet/freescale/fman/fman_memac.c
@@ -852,7 +852,6 @@ int memac_set_tx_pause_frames(struct fman_mac *memac, u8 priority,
tmp = ioread32be(®s->command_config);
tmp &= ~CMD_CFG_PFC_MODE;
- priority = 0;
iowrite32be(tmp, ®s->command_config);
--
1.9.1
next prev parent reply other threads:[~2020-07-31 10:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-31 10:49 [PATCH net v2 0/5] DPAA FMan driver fixes Florinel Iordache
2020-07-31 10:49 ` [PATCH net v2 1/5] fsl/fman: use 32-bit unsigned integer Florinel Iordache
2020-07-31 10:49 ` [PATCH net v2 2/5] fsl/fman: fix dereference null return value Florinel Iordache
2020-07-31 10:49 ` Florinel Iordache [this message]
2020-07-31 10:49 ` [PATCH net v2 4/5] fsl/fman: check dereferencing null pointer Florinel Iordache
2020-07-31 10:49 ` [PATCH net v2 5/5] fsl/fman: fix eth hash table allocation Florinel Iordache
2020-07-31 20:12 ` Jakub Kicinski
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=1596192562-7629-4-git-send-email-florinel.iordache@nxp.com \
--to=florinel.iordache@nxp.com \
--cc=Markus.Elfring@web.de \
--cc=davem@davemloft.net \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=madalin.bucur@nxp.com \
--cc=netdev@vger.kernel.org \
/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).