diff options
| author | Niklas Cassel <[email protected]> | 2018-02-09 16:22:47 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-02-09 19:23:04 +0000 |
| commit | 1029117127540fef4edcf4f0887dc3e1f7d5adb2 (patch) | |
| tree | ebec54574b541a88c0465c9a2b59ce45ace5faa1 /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | net: stmmac: rename GMAC_INT_DEFAULT_MASK for dwmac4 (diff) | |
| download | kernel-1029117127540fef4edcf4f0887dc3e1f7d5adb2.tar.gz kernel-1029117127540fef4edcf4f0887dc3e1f7d5adb2.zip | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
