r8169: improve rtl_schedule_task
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 22 Mar 2020 18:03:06 +0000 (19:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Mar 2020 04:38:21 +0000 (21:38 -0700)
commit3f6ca6c739892ed018bc17100efa4703fcc8af46
tree85c6fc7730150aa68b031f46e1ebb5fde82276e3
parente18958c6a204150f07b24affe6883cb3b938f112
r8169: improve rtl_schedule_task

The current implementation makes the implicit assumption that if a bit
is set, then the work is scheduled already. Remove the need for this
implicit assumption and call schedule_work() always. It will check
internally whether the work is scheduled already.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c