]> 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)
commit14489fc2c7b30d4be214f12c82a67cc27e96963d
tree7dfa37065aae12faf813fb6f53055f59fab8f601
parentf2e14c0998ab201456479d53734b8c1372b25f5d
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