From: Florinel Iordache Date: Mon, 3 Aug 2020 07:07:32 +0000 (+0300) Subject: fsl/fman: fix unreachable code X-Git-Tag: v5.9-rc1~133^2~40^2~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=cc79fd8f557767de90ff199d3b6fb911df43160a;p=linux-platform-drivers-x86.git fsl/fman: fix unreachable code 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/freescale/fman/fman_memac.c b/drivers/net/ethernet/freescale/fman/fman_memac.c index a5500ede4070..bb02b37422cc 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);