mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
fsl/fman: fix unreachable code
[ Upstream commitcc79fd8f55] The parameter 'priority' is incorrectly forced to zero which ultimately induces logically dead code in the subsequent lines. Fixes:57ba4c9b56("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0d2a776e60
commit
be57408299
@@ -851,7 +851,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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user