]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: remove redundant enable of PMT irq
authorNiklas Cassel <niklas.cassel@axis.com>
Fri, 9 Feb 2018 16:22:47 +0000 (17:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Feb 2018 19:23:04 +0000 (14:23 -0500)
commit79490c51eaee63a9e7ebe7ba24e059879d9a51c6
treeebec54574b541a88c0465c9a2b59ce45ace5faa1
parente098cbd158cb1bdaf1ab24e7624cf8c34d3dce18
net: stmmac: remove redundant enable of PMT irq

For dwmac4, GMAC_INT_DEFAULT_ENABLE already includes
GMAC_INT_PMT_EN, so it is redundant to check if hw->pmt
is set, and if so, setting the bit again.

For dwmac1000, GMAC_INT_DEFAULT_MASK does not include
GMAC_INT_DISABLE_PMT, so it is redundant to check if
hw->pmt is set, and if so, clearing an already cleared bit.

Improve code readability by removing this redundant code.

Signed-off-by: Niklas Cassel <niklas.cassel@axis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c