fsl/fman: fix unreachable code
authorFlorinel Iordache <florinel.iordache@nxp.com>
Mon, 3 Aug 2020 07:07:32 +0000 (10:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 09:02:04 +0000 (11:02 +0200)
[ Upstream commit cc79fd8f557767de90ff199d3b6fb911df43160a ]

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/freescale/fman/fman_memac.c

index c30994a09a7c20d3c866b122659483f5ca6f4267..3e5b40c83155851b0b70bd401d0af2560f40ced9 100644 (file)
@@ -851,7 +851,6 @@ int memac_set_tx_pause_frames(struct fman_mac *memac, u8 priority,
 
        tmp = ioread32be(&regs->command_config);
        tmp &= ~CMD_CFG_PFC_MODE;
-       priority = 0;
 
        iowrite32be(tmp, &regs->command_config);