net: sched: taprio: Remove should_restart_cycle()
authorAndre Guedes <andre.guedes@intel.com>
Tue, 23 Apr 2019 19:44:22 +0000 (12:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Apr 2019 02:52:32 +0000 (19:52 -0700)
commit5175aafe71bfb3fc6a1254a966b0f60e7a46ebba
tree95b5745d712ef5ab29fa40a93bc7f1fc0b74d716
parent8599099f0c58cec677a47c968e777eee8d64fb80
net: sched: taprio: Remove should_restart_cycle()

The 'entry' argument from should_restart_cycle() cannot be NULL since it
is already checked by the caller so the WARN_ON() within should_
restart_cycle() could be removed.  By doing that, that function becomes
a dummy wrapper on list_is_last() so this patch simply gets rid of it
and call list_is_last() within advance_sched() instead.

Signed-off-by: Andre Guedes <andre.guedes@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_taprio.c