OSDN Git Service

fsl/fman: fix unreachable code
authorFlorinel Iordache <florinel.iordache@nxp.com>
Mon, 3 Aug 2020 07:07:32 +0000 (10:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Aug 2020 23:20:14 +0000 (16:20 -0700)
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>
drivers/net/ethernet/freescale/fman/fman_memac.c

index a5500ed..bb02b37 100644 (file)
@@ -852,7 +852,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);