]> git.kernelconcepts.de Git - karo-tx-linux.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)
commiteece71e8fb0953e18e3ac631b4414bb21af924a7
tree7dfa37065aae12faf813fb6f53055f59fab8f601
parent6e6edd8b96e859bcbb3fd03eafd76ad306026b21
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