]> git.baikalelectronics.ru Git - kernel.git/commit
net-next: mediatek: don't use intermediate variables to store IRQ masks
authorJohn Crispin <john@phrozen.org>
Wed, 29 Jun 2016 11:38:09 +0000 (13:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jun 2016 12:52:04 +0000 (08:52 -0400)
commit04910e006654e18297e4f23ba73683e7c56fc3ff
tree7dfa37065aae12faf813fb6f53055f59fab8f601
parent1de0dbfb832a4d87eb255a115a98f49373bc0660
net-next: mediatek: don't use intermediate variables to store IRQ masks

The code currently uses variables to store and never modify the bit masks
of interrupts. This is legacy code from an early version of the driver
that supported MIPS based SoCs where the IRQ bits depended on the actual
SoC. As the bits are the same for all ARM based SoCs using this driver we
can remove the intermediate variables.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c