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)
commit577b995be5f5235e7bfe48536c72a5d1f0084f6b
tree2632e6168bfc076f21e9d8a0a281bdfdca1827a6
parentc36a68fab1c3ddf71918cd1e5937a647cd80ba2b
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