]> git.baikalelectronics.ru Git - kernel.git/commit
net: 3com: 3c59x: Move boomerang/vortex conditional into function
authorAnna-Maria Gleixner <anna-maria@linutronix.de>
Fri, 4 May 2018 15:17:47 +0000 (17:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 May 2018 03:25:24 +0000 (23:25 -0400)
commit849128db274dcb0ad4e4cbd8c4f4666208f713f5
tree2632e6168bfc076f21e9d8a0a281bdfdca1827a6
parent98eda91cc0f59a3c76f095d4ce132db5c5b5b4bf
net: 3com: 3c59x: Move boomerang/vortex conditional into function

If vp->full_bus_master_tx is set, vp->full_bus_master_rx is set as well
(see vortex_probe1()). Therefore the conditionals for the decision if
boomerang or vortex ISR is executed have the same result. Instead of
repeating the explicit conditional execution of the boomerang/vortex ISR,
move it into an own function.

No functional change.

Cc: Steffen Klassert <klassert@mathematik.tu-chemnitz.de>
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/3com/3c59x.c