xen/sched: remove pointless BUG_ON() in credit2
PATCH v2 1/1 xen/sched: remove pointless BUG_ON() in credit2
The BUG_ON() at the top of csched2_context_saved() is completely pointless, as the ASSERT() just following it catches the same problem already.
Signed-off-by Juergen Gross <[email protected]>
--- xen/common/sched/credit2.c | 2 -- 1 file changed, 2 deletions(-)
xen/common/sched/credit2.c +0 -2
@@ -2167,8 +2167,6 @@ csched2_context_saved(const struct scheduler *ops, struct sched_unit *unit)s_time_t now =NOW ();LIST_HEAD (were_parked); -BUG_ON ( !is_idle_unit (unit) && - svc->rqd !=c2rqd (ops,sched_unit_master (unit)));ASSERT (is_idle_unit (unit) || svc->rqd ==c2rqd (ops,sched_unit_master (unit)));
Signature · 7 lines
2.16.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 6 lines · Juergen Gross
The
BUG_ON()at the top ofcsched2_context_saved()is completely pointless, as theASSERT()just following it catches the same problem already.Signed-off-by Juergen Gross <[email protected]>
Reviewed-by Dario Faggioli <[email protected]>
Thanks and Regards
Signature · 6 lines
Dario Faggioli, Ph.D http://about.me/dario.faggioli Virtualization Software Engineer SUSE Labs, SUSE https://www.suse.com/ ------------------------------------------------------------------- <<This happens because _I_ choose it to happen!>> (Raistlin Majere)
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel