]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7708d6ccb0e7cbc87481f281792302a5f653ca78
tree85c6fc7730150aa68b031f46e1ebb5fde82276e3
parentd7b7f5387742105985164a43b7aa0a872c148743
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