summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/3com
diff options
context:
space:
mode:
authorNiklas Cassel <niklas.cassel@axis.com>2018-02-09 17:22:47 +0100
committerDavid S. Miller <davem@davemloft.net>2018-02-09 14:23:04 -0500
commit1029117127540fef4edcf4f0887dc3e1f7d5adb2 (patch)
treeebec54574b541a88c0465c9a2b59ce45ace5faa1 /drivers/net/ethernet/3com
parente879b7ab3739d8f9990961fc7df2f63861bd780b (diff)
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>
Diffstat (limited to 'drivers/net/ethernet/3com')
0 files changed, 0 insertions, 0 deletions